From 7f605daac9434913da06a2da8abe425d3fd4432e Mon Sep 17 00:00:00 2001 From: Max Vorobev Date: Wed, 18 Mar 2020 13:05:17 +0300 Subject: [PATCH] Fix excessive rebuilding (#82) ## 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](https://github.com/bazelbuild/intellij/issues/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` --- .bazelrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bazelrc b/.bazelrc index 4df4e0b06b..7da3938544 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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