aboutsummaryrefslogtreecommitdiff
path: root/common.bazelrc
diff options
context:
space:
mode:
authorVinh Tran <vinhdaitran@google.com>2022-04-28 16:19:05 -0400
committerVinh Tran <vinhdaitran@google.com>2022-04-28 16:24:28 -0400
commit35fc9beabcae503e2fbbf7aeba8233b02a92ce20 (patch)
tree870a078a115b10064db3b9b5b90de20d0c434244 /common.bazelrc
parentcd3197b8addeba08419e9be961c14bd6f710f81e (diff)
downloadbazel-35fc9beabcae503e2fbbf7aeba8233b02a92ce20.tar.gz
Disable errorprone in bazel
As discussed in aosp/c/platform/build/soong/+/2078047/comments/23c6f20b_62c88cf7, we want to disable errorprone in javac to continue making progress on bazel conversion for java and android. Test: b build //external/junit after allowlisting the module in bp2build Change-Id: I62cfd5ded7dee8c64dae1442ccd9cd44b37443aa
Diffstat (limited to 'common.bazelrc')
-rw-r--r--common.bazelrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.bazelrc b/common.bazelrc
index 584b6e8f..ab416c0d 100644
--- a/common.bazelrc
+++ b/common.bazelrc
@@ -24,6 +24,12 @@ build --incompatible_enable_cc_toolchain_resolution
build --tool_java_runtime_version=local_jdk
build --java_runtime_version=local_jdk
+# Disable errorprone to continue making progress on java and android conversion
+# while we determine how errorprone will be handled in Bazel-only builds b/227504307.
+# TODO(b/227504307): Remove --javacopt="-XepDisableAllChecks" after implementing
+# the correct solution around errorprone.
+build --javacopt="-XepDisableAllChecks"
+
# Lock down the PATH variable in actions to /usr/bin and /usr/local/bin.
build --experimental_strict_action_env