Skip to content

Commit 6498328

Browse files
devversionclydin
authored andcommitted
build: avoid unnecessary re-evaluation of starlark code
The experimental allow tags propagation flag is a `BuildLanguage` option and causes all Starlark code to be re-invoked. This causes a slow-down when switching between bazel query/ bazel build because the option is not set for `bazel query`. We fix it by applying the option to all commands, using `common`. (cherry picked from commit a8968b6)
1 parent 09adb8e commit 6498328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test --incompatible_strict_action_env
5050
build --experimental_remote_merkle_tree_cache
5151

5252
# Ensure that tags applied in BUILDs propagate to actions
53-
build --experimental_allow_tags_propagation
53+
common --experimental_allow_tags_propagation
5454

5555
# Don't check if output files have been modified
5656
build --noexperimental_check_output_files

0 commit comments

Comments
 (0)