generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.bazelrc.common
38 lines (32 loc) · 2.08 KB
/
.bazelrc.common
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
# docs: https://bazel.build/reference/command-line-reference#flag--enable_bzlmod
common --enable_bzlmod
# The lockfile can cause issues when switching between Bazel versions.
# docs: https://bazel.build/reference/command-line-reference#flag--lockfile_mode
common --lockfile_mode=off
# docs: https://bazel.build/reference/command-line-reference#flag--incompatible_disallow_empty_glob
# TODO re-enable after stardoc was updated on the BCR,
# see https://github.com/bazelbuild/stardoc/commit/c026daeee09fb072a02be87dfc87ea60d157e770#diff-3053677e4333a96b20ed76c662bca07fb2e1ce059479170139209356787da09cL56
common --noincompatible_disallow_empty_glob
# docs: https://bazel.build/reference/command-line-reference#flag--remote_upload_local_results
build --noremote_upload_local_results
# docs: https://bazel.build/reference/command-line-reference#flag--incompatible_strict_action_env
build --incompatible_strict_action_env
# docs: https://bazel.build/reference/command-line-reference#flag--sandbox_default_allow_network
build --sandbox_default_allow_network=false
# docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
build --nolegacy_external_runfiles
# docs: https://bazel.build/reference/command-line-reference#flag--test_output
test --test_output=errors
# docs: https://bazel.build/reference/command-line-reference#flag--test_verbose_timeout_warnings
test --test_verbose_timeout_warnings
# docs: https://bazel.build/reference/command-line-reference#flag--incompatible_exclusive_test_sandboxed
test --incompatible_exclusive_test_sandboxed
# docs: https://bazel.build/reference/command-line-reference#flag--enable_platform_specific_config
common --enable_platform_specific_config
# Enable persistent Zig cache directory within the sandbox,
# see https://github.com/aherrmann/rules_zig/issues/87,
# and https://github.com/uber/hermetic_cc_toolchain/issues/83.
# docs: https://bazel.build/reference/command-line-reference#flag--sandbox_add_mount_pair
build:linux --sandbox_add_mount_pair=/tmp
build:macos --sandbox_add_mount_pair=/var/tmp
build:windows --sandbox_add_mount_pair=C:\Temp