Debian Codegraph @

.aspect/bazelrc/bazel6.bazelrc

raw
1 # Speed up all builds by not checking if external repository files have been modified.
2 # Docs: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryOptions.java#L244
3 build --noexperimental_check_external_repository_files
4 fetch --noexperimental_check_external_repository_files
5 query --noexperimental_check_external_repository_files
6
7 # Directories used by sandboxed non-worker execution may be reused to avoid unnecessary setup costs.
8 # Save time on Sandbox creation and deletion when many of the same kind of action run during the
9 # build.
10 # Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
11 build --reuse_sandbox_directories
12
13 # Avoid this flag being enabled by remote_download_minimal or remote_download_toplevel
14 # See https://meroton.com/blog/bazel-6-errors-build-without-the-bytes/
15 build --noexperimental_action_cache_store_output_metadata
16
17 # Speed up all builds by not checking if output files have been modified. Lets you make changes to
18 # the output tree without triggering a build for local debugging. For example, you can modify
19 # [rules_js](https://github.com/aspect-build/rules_js) 3rd party npm packages in the output tree
20 # when local debugging.
21 # Docs: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/pkgcache/PackageOptions.java#L185
22 # 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/bazel-contrib/bazel-lib/pull/711
24 # for more info.
25 build --noexperimental_check_output_files
26 fetch --noexperimental_check_output_files
27 query --noexperimental_check_output_files
28
29 # Don't apply `--noremote_upload_local_results` and `--noremote_accept_cached` to the disk cache.
30 # If you have both `--noremote_upload_local_results` and `--disk_cache`, then this fixes a bug where
31 # Bazel doesn't write to the local disk cache as it treats as a remote cache.
32 # Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_remote_results_ignore_disk
33 # NB: This flag is in bazel6.bazelrc because it became a no-op in Bazel 7 and has been removed
34 # in Bazel 8.
35 build --incompatible_remote_results_ignore_disk
36
37 # Propagate tags from a target declaration to the actions' execution requirements.
38 # Ensures that tags applied in your BUILD file, like `tags=["no-remote"]`
39 # get propagated to actions created by the rule.
40 # Without this option, you rely on rules authors to manually check the tags you passed
41 # and apply relevant ones to the actions they create.
42 # See https://github.com/bazelbuild/bazel/issues/8830 for details.
43 # Docs: https://bazel.build/reference/command-line-reference#flag--experimental_allow_tags_propagation
44 build --experimental_allow_tags_propagation
45 fetch --experimental_allow_tags_propagation
46 query --experimental_allow_tags_propagation
47
48 # Do not build runfiles symlink forests for external repositories under
49 # `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles &
50 # sandbox creation times & prevents accidentally depending on this feature which may flip to off by
51 # default in the future. Note, some rules may fail under this flag, please file issues with the rule
52 # author.
53 # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
54 build --nolegacy_external_runfiles