1
- # `.bazelrc` is a Bazel configuration file.
2
- # https://bazel.build/docs/best-practices#bazelrc-file
1
+ ###############################################################################
2
+ ## Bazel Configuration Flags
3
+ ##
4
+ ## `.bazelrc` is a Bazel configuration file.
5
+ ## https://bazel.build/docs/best-practices#bazelrc-file
6
+ ###############################################################################
7
+
8
+ # https://bazel.build/docs/windows#symlink
9
+ startup --windows_enable_symlinks
10
+
11
+ ###############################################################################
12
+ ## Unique configuration groups
13
+ ###############################################################################
3
14
4
15
# Enable rustfmt for all targets in the workspace
5
16
build:rustfmt --aspects=//rust:defs.bzl%rustfmt_aspect
@@ -9,9 +20,19 @@ build:rustfmt --output_groups=+rustfmt_checks
9
20
build:clippy --aspects=//rust:defs.bzl%rust_clippy_aspect
10
21
build:clippy --output_groups=+clippy_checks
11
22
12
- # https://bazel.build/docs/windows#symlink
13
- startup --windows_enable_symlinks
23
+ ###############################################################################
24
+ ## Incompatibility flags
25
+ ###############################################################################
26
+
27
+ # https://github.com/bazelbuild/bazel/issues/8195
28
+ build --incompatible_disallow_empty_glob=true
29
+
30
+ ###############################################################################
31
+ ## Custom user flags
32
+ ##
33
+ ## This should always be the last thing in the `.bazelrc` file to ensure
34
+ ## consistent behavior when setting flags in that file as `.bazelrc` files are
35
+ ## evaluated top to bottom.
36
+ ###############################################################################
14
37
15
- # This import should always be last to allow users to override
16
- # settings for local development.
17
38
try-import %workspace%/user.bazelrc
0 commit comments