From a8968b6f6e25ade71d5b1356e2e72b840b04a8a4 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 16 Feb 2023 10:22:50 +0000 Subject: [PATCH] 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`. --- .bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 339e2d7fb2..d742b8bbb4 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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