-
Notifications
You must be signed in to change notification settings - Fork 12
/
.bazelrc
25 lines (19 loc) · 1.09 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Avoid https://github.com/bazelbuild/bazel/issues/14459 since we don't need Xcode
common --repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
# For bazel-in-bazel testing
# Trick bazel into treating BUILD files under examples/* as being regular files
# This lets us glob() up all the files inside the examples to make them inputs to tests
# (Note, we cannot use `common --deleted_packages` because the bazel version command doesn't support it)
# To update these lines, run `bazel run @rules_bazel_integration_test//tools:update_deleted_packages`.
build --deleted_packages=examples/bzlmod,examples/bzlmod_specify_assets,examples/simple,examples/specify_assets
query --deleted_packages=examples/bzlmod,examples/bzlmod_specify_assets,examples/simple,examples/specify_assets
# Verbose Failures
build --verbose_failures
# Strict PATH. Helps prevent build cache invalidation due to PATH differences.
build --incompatible_strict_action_env=true
# Allow weird paths for gh/jq
test --test_env=PATH
# Provide better error output for failed tests.
test --test_output=errors --test_summary=terse
# Use bzlmod
common --enable_bzlmod