Skip to content

Commit

Permalink
bazel: set no-remote-cache for GoPath, propagate tags
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rickystewart committed Jun 13, 2022
1 parent 999a127 commit 1e47499
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 1e47499

Please sign in to comment.