Skip to content

Commit 912c6f8

Browse files
authored
Fix excessive rebuilding (#124)
## 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`
1 parent 8e2a84e commit 912c6f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
build --incompatible_strict_action_env
2+
run --incompatible_strict_action_env
3+
test --incompatible_strict_action_env
4+
15
build:rbe --project_id=grakn-dev
26
build:rbe --remote_instance_name=projects/grakn-dev/instances/default_instance
37
build:rbe --remote_cache=remotebuildexecution.googleapis.com

0 commit comments

Comments
 (0)