From 1e47499215350c2ef5b5c6578f57387a7c9d1b76 Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Mon, 13 Jun 2022 14:09:01 -0500 Subject: [PATCH] bazel: set `no-remote-cache` for `GoPath`, propagate tags On my machine, building the `GoPath` takes a lot of time but it's almost all in caching apparently. I turn off caching with the `no-remote-cache` tag, but this has no effect unless we also set `--experimental_allow_tags_propagation`. See the [issue upstream](https://github.com/bazelbuild/bazel/issues/8830). I suspect that `--experimental_allow_tags_propagation` will be useful in other places as well for our fine-tuning. Release note: None --- .bazelrc | 1 + docs/generated/swagger/BUILD.bazel | 1 + 2 files changed, 2 insertions(+) diff --git a/.bazelrc b/.bazelrc index cebde08fe8eb..cbaf4e36f6fe 100644 --- a/.bazelrc +++ b/.bazelrc @@ -25,6 +25,7 @@ build --define gotags=bazel,gss build --experimental_proto_descriptor_sets_include_source_info build --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution build --symlink_prefix=_bazel/ +common --experimental_allow_tags_propagation test --config=test --experimental_ui_max_stdouterr_bytes=10485760 build --ui_event_filters=-DEBUG query --ui_event_filters=-DEBUG diff --git a/docs/generated/swagger/BUILD.bazel b/docs/generated/swagger/BUILD.bazel index c800688f46a2..a69f1d3eed4c 100644 --- a/docs/generated/swagger/BUILD.bazel +++ b/docs/generated/swagger/BUILD.bazel @@ -21,6 +21,7 @@ genrule( go_path( name = "swagger_go_path", + tags = ["no-remote-cache"], deps = [ "//pkg/server", ],