Skip to content

Commit

Permalink
Merge #82843
Browse files Browse the repository at this point in the history
82843: bazel: set `no-remote-cache` for `GoPath`, propagate tags r=rail a=rickystewart

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](bazelbuild/bazel#8830).
I suspect that `--experimental_allow_tags_propagation` will be useful in
other places as well for our fine-tuning.

Release note: None

Co-authored-by: Ricky Stewart <[email protected]>
  • Loading branch information
craig[bot] and rickystewart committed Jun 14, 2022
2 parents 448bba1 + 1e47499 commit b0c2f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/generated/swagger/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ genrule(

go_path(
name = "swagger_go_path",
tags = ["no-remote-cache"],
deps = [
"//pkg/server",
],
Expand Down

0 comments on commit b0c2f3a

Please sign in to comment.