-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.bazelrc
51 lines (44 loc) · 2.37 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
47
48
49
50
51
# Java options
build --java_language_version="21"
build --java_runtime_version="remotejdk_21"
build --javacopt="-source 21 -target 21"
build --tool_java_language_version="21"
build --tool_java_runtime_version="remotejdk_21"
# Other options
build --experimental_use_hermetic_linux_sandbox
build --experimental_worker_cancellation
build --experimental_worker_multiplex_sandboxing
build --experimental_worker_sandbox_hardening
build --strategy=worker,sandboxed,local
build --verbose_failures
build --worker_max_instances=4
build --worker_sandboxing
common --experimental_output_paths=strip
common --modify_execution_info=CppArchive=+supports-path-mapping
common --modify_execution_info=CppCompile=+supports-path-mapping
common --modify_execution_info=CppModuleMap=+supports-path-mapping
common --announce_rc
common --color=yes
common --disk_cache=.bazel_cache
common --@rules_scala_annex//rules/scala:scala-toolchain=zinc
# These are backwards incompatible options; we should check to see if their values have been flipped
# when upgrading to new major Bazel version
common --incompatible_auto_exec_groups
common --incompatible_autoload_externally=sh_binary # sh_binary is used by rules_jvm_external
common --incompatible_config_setting_private_default_visibility
common --incompatible_disable_native_repo_rules
common --incompatible_disable_starlark_host_transitions
common --incompatible_disable_target_provider_fields
common --incompatible_strict_action_env
# Unfortunately, this can't be enabled just yet because with it enabled, we get the following error:
# ERROR: Traceback (most recent call last):
# File "/home/jpeterson/.cache/bazel/*/external/rules_java+/java/common/rules/java_runtime.bzl", line 197, column 48, in <toplevel>
# "hermetic_static_libs": attr.label_list(
# Error in label_list: Illegal argument: element in 'providers' is of unexpected type. Either all elements should be providers, or all elements should be lists of providers, but got an element of type com.google.devtools.build.lib.starlarkbuildapi.core.ContextAndFlagGuardedValue$1.
#
#common --incompatible_stop_exporting_language_modules
# This is disabled because rules_python (and possibly other rulesets we depend on) rely on
# deprecated `Label` APIs:
# https://github.com/bazelbuild/rules_python/blob/main/python/private/pythons_hub.bzl#L82
#common --noincompatible_enable_deprecated_label_apis
test --test_output=all