From 849f706ac227b1a18f26070cb772c9825583a1b3 Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 11 Oct 2022 12:25:48 -0700 Subject: [PATCH] Don't report an error when oneversion tool is not available PiperOrigin-RevId: 480424274 Change-Id: I3398e2825482634b91c118883312437d3f1c1fad --- .../build/lib/rules/java/OneVersionCheckActionBuilder.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java b/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java index ad995fc223b849..d8b77a06fd8af9 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/OneVersionCheckActionBuilder.java @@ -85,7 +85,6 @@ public Artifact build(RuleContext ruleContext) { FilesToRunProvider oneVersionTool = javaToolchain.getOneVersionBinary(); Artifact oneVersionAllowlist = javaToolchain.getOneVersionAllowlist(); if (oneVersionTool == null || oneVersionAllowlist == null) { - addRuleErrorForMissingArtifacts(ruleContext, javaToolchain); return outputArtifact; }