1+ # Not using common here because https://github.com/bazelbuild/bazel/pull/18609 was added in Bazel 6.3.0
2+
13# Speed up all builds by not checking if external repository files have been modified.
24# Docs: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryOptions.java#L244
35build --noexperimental_check_external_repository_files
@@ -20,8 +22,35 @@ build --noexperimental_action_cache_store_output_metadata
2022# when local debugging.
2123# Docs: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/pkgcache/PackageOptions.java#L185
2224# NB: This flag is in bazel6.bazelrc as when used in Bazel 7 is has been observed to break
23- # "build without the bytes" --remote_download_outputs=toplevel. See https://github.com/aspect-build /bazel-lib/pull/711
25+ # "build without the bytes" --remote_download_outputs=toplevel. See https://github.com/bazel-contrib /bazel-lib/pull/711
2426# for more info.
2527build --noexperimental_check_output_files
2628fetch --noexperimental_check_output_files
2729query --noexperimental_check_output_files
30+
31+ # Don't apply `--noremote_upload_local_results` and `--noremote_accept_cached` to the disk cache.
32+ # If you have both `--noremote_upload_local_results` and `--disk_cache`, then this fixes a bug where
33+ # Bazel doesn't write to the local disk cache as it treats as a remote cache.
34+ # Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_remote_results_ignore_disk
35+ # NB: This flag is in bazel6.bazelrc because it became a no-op in Bazel 7 and has been removed
36+ # in Bazel 8.
37+ build --incompatible_remote_results_ignore_disk
38+
39+ # Propagate tags from a target declaration to the actions' execution requirements.
40+ # Ensures that tags applied in your BUILD file, like `tags=["no-remote"]`
41+ # get propagated to actions created by the rule.
42+ # Without this option, you rely on rules authors to manually check the tags you passed
43+ # and apply relevant ones to the actions they create.
44+ # See https://github.com/bazelbuild/bazel/issues/8830 for details.
45+ # Docs: https://bazel.build/reference/command-line-reference#flag--experimental_allow_tags_propagation
46+ build --experimental_allow_tags_propagation
47+ fetch --experimental_allow_tags_propagation
48+ query --experimental_allow_tags_propagation
49+
50+ # Do not build runfiles symlink forests for external repositories under
51+ # `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles &
52+ # sandbox creation times & prevents accidentally depending on this feature which may flip to off by
53+ # default in the future. Note, some rules may fail under this flag, please file issues with the rule
54+ # author.
55+ # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
56+ build --nolegacy_external_runfiles
0 commit comments