Skip to content

Commit ad65a6b

Browse files
authored
Improve caching for devs and CI via --incompatible_strict_action_env (#4404)
**What type of PR is this?** Cleanup **What does this PR do? Why is it needed?** **Which issues(s) does this PR fix?** Fixes # **Other notes for review**
1 parent ffc8ff6 commit ad65a6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ common --enable_platform_specific_config
44
# TODO: Temporarily disable while rules_go migrates to Bzlmod for its dev build.
55
# https://github.com/bazelbuild/bazel/issues/18958
66
common --noexperimental_enable_bzlmod
7+
# Improve caching, but allow integration tests to find `bazel` in PATH.
8+
# Doesn't work on Windows as protoc requires DLLs outside the default PATH.
9+
common:macos --incompatible_strict_action_env
10+
common:linux --incompatible_strict_action_env
11+
common --test_env=PATH
712
test --test_output=errors
813

914
# Workaround for https://github.com/bazelbuild/continuous-integration/issues/2269.

0 commit comments

Comments
 (0)