From 2a4d9879db65d21964325e7733638bc4a4166390 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 16 Feb 2023 10:25:36 +0000 Subject: [PATCH] build: avoid unnecessary re-evaluation of starlark code (#49106) 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`. PR Close #49106 --- .bazelrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index 18450b87ecf..878d1deb4a3 100644 --- a/.bazelrc +++ b/.bazelrc @@ -134,9 +134,10 @@ build:remote --project_id=internal-200822 build:remote --remote_cache=remotebuildexecution.googleapis.com build:remote --remote_executor=remotebuildexecution.googleapis.com -# Ensure that tags like "no-remote-exec" get propagated to actions created by rules. +# Ensure that tags like "no-remote-exec" get propagated to actions created by rules, +# even if the rule implementation does not explicitly pass them to the execution requirements. # https://bazel.build/reference/command-line-reference#flag--experimental_allow_tags_propagation -build --experimental_allow_tags_propagation +common --experimental_allow_tags_propagation # Disable network access in the sandbox by default. To enable network access # for a particular target, use: