Automated rollback of commit
*** Reason for rollback ***
Doesn't work correctly on native java_binary (only on Starlark)
*** Original change description ***
Don't report an error when oneversion tool is not available
@@ -85,6 +85,7 @@ public final class OneVersionCheckActionBuilder {
FilesToRunProvider oneVersionTool = javaToolchain.getOneVersionBinary();
Artifact oneVersionAllowlist = javaToolchain.getOneVersionAllowlist();
if (oneVersionTool == null || oneVersionAllowlist == null) {
+ addRuleErrorForMissingArtifacts(ruleContext, javaToolchain);
return outputArtifact;
}
