-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should unblock bazelbuild/bazel-central-registry#3260
- Loading branch information
Showing
3 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
# Attempt to build & test every target whose prerequisites were successfully built. | ||
# Docs: https://bazel.build/docs/user-manual#keep-going | ||
build --keep_going | ||
# Directories used by sandboxed non-worker execution may be reused to avoid unnecessary setup costs. | ||
# Save time on Sandbox creation and deletion when many of the same kind of action run during the | ||
# build. | ||
# No longer experimental in Bazel 6: https://github.com/bazelbuild/bazel/commit/c1a95501a5611878e5cc43a3cc531f2b9e47835b | ||
# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories | ||
build --experimental_reuse_sandbox_directories | ||
|
||
# Output test errors to stderr so users don't have to `cat` or open test failure log files when test | ||
# fail. This makes the log noisier in exchange for reducing the time-to-feedback on test failures for | ||
# users. | ||
# Docs: https://bazel.build/docs/user-manual#test-output | ||
test --test_output=errors | ||
# Do not build runfiles symlink forests for external repositories under | ||
# `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles & | ||
# sandbox creation times & prevents accidentally depending on this feature which may flip to off by | ||
# default in the future. Note, some rules may fail under this flag, please file issues with the rule | ||
# author. | ||
# Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles | ||
build --nolegacy_external_runfiles | ||
|
||
# Show the output files created by builds that requested more than one target. This helps users | ||
# locate the build outputs in more cases | ||
# Docs: https://bazel.build/docs/user-manual#show-result | ||
build --show_result=20 | ||
# Avoid creating a runfiles tree for binaries or tests until it is needed. | ||
# Docs: https://bazel.build/reference/command-line-reference#flag--build_runfile_links | ||
# See https://github.com/bazelbuild/bazel/issues/6627 | ||
# | ||
# This may break local workflows that `build` a binary target, then run the resulting program | ||
# outside of `bazel run`. In those cases, the script will need to call | ||
# `bazel build --build_runfile_links //my/binary:target` and then execute the resulting program. | ||
build --nobuild_runfile_links | ||
|
||
# Bazel picks up host-OS-specific config lines from bazelrc files. For example, if the host OS is | ||
# Linux and you run bazel build, Bazel picks up lines starting with build:linux. Supported OS | ||
# identifiers are `linux`, `macos`, `windows`, `freebsd`, and `openbsd`. Enabling this flag is | ||
# equivalent to using `--config=linux` on Linux, `--config=windows` on Windows, etc. | ||
# Docs: https://bazel.build/reference/command-line-reference#flag--enable_platform_specific_config | ||
common --enable_platform_specific_config | ||
|
||
# Output a heap dump if an OOM is thrown during a Bazel invocation | ||
# (including OOMs due to `--experimental_oom_more_eagerly_threshold`). | ||
# The dump will be written to `<output_base>/<invocation_id>.heapdump.hprof`. | ||
# You may need to configure CI to capture this artifact and upload for later use. | ||
# Docs: https://bazel.build/reference/command-line-reference#flag--heap_dump_on_oom | ||
common --heap_dump_on_oom | ||
# Needed prior to Bazel 8; see | ||
# https://github.com/bazelbuild/bazel/issues/20577 | ||
coverage --build_runfile_links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters