Skip to content

Commit

Permalink
Fix excessive rebuilding (#82)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

Previously, when switching between IDE and terminal builds, build cache would be fully invalidated. due to changed $PATH which defeats the sole purpose of caching. As per suggestion in [this](bazelbuild/intellij#1169) thread, we're enabling strict environment for actions (which sets PATH alongside with other variables to minimally viable preconfigured values). 

## What are the changes implemented in this PR?

Specify `--incompatible_strict_action_env` for `build`/`test`/`run`
  • Loading branch information
vmax authored Mar 18, 2020
1 parent d85fdfc commit 7f605da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
build --incompatible_strict_action_env
run --incompatible_strict_action_env
test --incompatible_strict_action_env

build:rbe --project_id=grakn-dev
build:rbe --remote_instance_name=projects/grakn-dev/instances/default_instance
build:rbe --remote_cache=remotebuildexecution.googleapis.com
Expand Down

0 comments on commit 7f605da

Please sign in to comment.