1+ ###############################################################################
2+ ## Bazel Configuration Flags
3+ ##
4+ ## `.bazelrc` is a Bazel configuration file.
5+ ## https://bazel.build/docs/best-practices#bazelrc-file
6+ ###############################################################################
7+
18test --test_output=errors
29
310# Fix the excessive rebuilding when using anything that depends on protobuf rules
411# See https://github.com/bazelbuild/buildtools/issues/744
512common --incompatible_strict_action_env
613common --enable_bzlmod
714
8- try-import user.bazelrc
9-
1015# To update these lines, execute
1116# `bazel run @rules_bazel_integration_test//tools:update_deleted_packages`
1217build --deleted_packages=examples/check_glob,examples/optional_attributes
@@ -15,3 +20,26 @@ query --deleted_packages=examples/check_glob,examples/optional_attributes
1520# Enable the aspect
1621build --aspects=//shellcheck:shellcheck_aspect.bzl%shellcheck_aspect
1722build --output_groups=+shellcheck_checks
23+
24+ ###############################################################################
25+ ## Incompatibility flags
26+ ###############################################################################
27+
28+ # https://github.com/bazelbuild/bazel/issues/8195
29+ build --incompatible_disallow_empty_glob=true
30+
31+ # https://github.com/bazelbuild/bazel/issues/12821
32+ build --nolegacy_external_runfiles
33+
34+ # https://github.com/bazelbuild/bazel/issues/23043.
35+ build --incompatible_autoload_externally=
36+
37+ ###############################################################################
38+ ## Custom user flags
39+ ##
40+ ## This should always be the last thing in the `.bazelrc` file to ensure
41+ ## consistent behavior when setting flags in that file as `.bazelrc` files are
42+ ## evaluated top to bottom.
43+ ###############################################################################
44+
45+ try-import user.bazelrc
0 commit comments