Skip to content

Commit

Permalink
Automated rollback of commit 849f706.
Browse files Browse the repository at this point in the history
*** 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

PiperOrigin-RevId: 480472464
Change-Id: I544fdbf2f9894e13e67ca51992adf328864a64a8
  • Loading branch information
comius authored and copybara-github committed Oct 11, 2022
1 parent 849f706 commit 1ab8498
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public Artifact build(RuleContext ruleContext) {
FilesToRunProvider oneVersionTool = javaToolchain.getOneVersionBinary();
Artifact oneVersionAllowlist = javaToolchain.getOneVersionAllowlist();
if (oneVersionTool == null || oneVersionAllowlist == null) {
addRuleErrorForMissingArtifacts(ruleContext, javaToolchain);
return outputArtifact;
}

Expand Down

0 comments on commit 1ab8498

Please sign in to comment.