-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
46 lines (32 loc) · 1.54 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Many of the following come from the great resource https://docs.aspect.build/guides/bazelrc/
# Allow Bazel server to check directory sources for changes
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
# Propagate tags from a target declaration to the actions' execution requirements
build --incompatible_allow_tags_propagation
fetch --incompatible_allow_tags_propagation
query --incompatible_allow_tags_propagation
# Better hermeticity. Use `tags=["requires-network"]` when required
build --sandbox_default_allow_network=false
# Reuse directories in sandboxed execution
build --reuse_sandbox_directories
# Do not automatically create `__init__.py` files in the runfiles of Python targets
build --incompatible_default_to_explicit_init_py
# Show the output files created by builds that requested more than one target
build --show_result=20
# Always output errors when running tests
test --test_output=errors
# Warn about tests that are too below their timeout (and can be made smaller)
test --test_verbose_timeout_warnings
# Fix: Allow exclusive tests (`tags=["exclusive"]`) to run in the sandbox
test --incompatible_exclusive_test_sandboxed
# Bzlmod enabled
common --enable_bzlmod
# Fix: Disable bzlmod lockfile for now, unstable
# https://github.com/aspect-build/rules_js/pull/1440/files
common --lockfile_mode=off
# more correct typechecks
build --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
fetch --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
query --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
# Local overrides
try-import local.bazelrc