Skip to content

Commit

Permalink
build: avoid unnecessary re-evaluation of starlark code
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
devversion authored and clydin committed Feb 16, 2023
1 parent 09adb8e commit 6498328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test --incompatible_strict_action_env
build --experimental_remote_merkle_tree_cache

# Ensure that tags applied in BUILDs propagate to actions
build --experimental_allow_tags_propagation
common --experimental_allow_tags_propagation

# Don't check if output files have been modified
build --noexperimental_check_output_files
Expand Down

0 comments on commit 6498328

Please sign in to comment.