-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.bazelrc
More file actions
55 lines (43 loc) · 2.24 KB
/
.bazelrc
File metadata and controls
55 lines (43 loc) · 2.24 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
###############################################################################
## Bazel Configuration Flags
##
## `.bazelrc` is a Bazel configuration file.
## https://bazel.build/docs/best-practices#bazelrc-file
###############################################################################
###############################################################################
## Incompatibility flags
###############################################################################
# https://github.com/bazelbuild/bazel/issues/8195
build --incompatible_disallow_empty_glob=true
# https://github.com/bazelbuild/bazel/issues/23043.
build --incompatible_autoload_externally=
# https://github.com/bazelbuild/bazel/issues/12821
build --nolegacy_external_runfiles
###############################################################################
###############################################################################
# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false
# Enable helm linting. Note that workspaces loading `rules_helm` will need to
# use the fully qualified aspect path: `@rules_helm//helm:defs.bzl%helm_lint_aspect`
build:strict --aspects=//helm:helm_lint.bzl%helm_lint_aspect
build:strict --output_groups=+helm_lint_checks
build:strict --//helm/settings:lint_promote_info=True
# Used for populating stamp data
build --enable_platform_specific_config
build:linux --workspace_status_command=tools/workspace_status.sh
build:macos --workspace_status_command=tools/workspace_status.sh
build:windows --workspace_status_command=tools/workspace_status.bat
# A configuration for disabling bzlmod.
common:no-bzlmod --noenable_bzlmod --enable_workspace
# Disable the bzlmod lockfile, so we don't accidentally commit MODULE.bazel.lock
common --lockfile_mode=off
# Display log messages from unit tests that fail.
test --test_output=errors
###############################################################################
## Custom user flags
##
## This should always be the last thing in the `.bazelrc` file to ensure
## consistent behavior when setting flags in that file as `.bazelrc` files are
## evaluated top to bottom.
###############################################################################
try-import %workspace%/user.bazelrc