Skip to content

Commit

Permalink
Remove an unnecessary addInput call in ctx.actions.run().
Browse files Browse the repository at this point in the history
SpawnAction.Builder.setExecutable adds the executable to the inputs for you.

Closes #5793.

PiperOrigin-RevId: 210381105
  • Loading branch information
benjaminp authored and Copybara-Service committed Aug 27, 2018
1 parent 1f72416 commit cd57e6c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ public void run(
buildCommandLine(builder, argumentsList);
if (executableUnchecked instanceof Artifact) {
Artifact executable = (Artifact) executableUnchecked;
builder.addInput(executable);
FilesToRunProvider provider = context.getExecutableRunfiles(executable);
if (provider == null) {
builder.setExecutable(executable);
Expand Down

0 comments on commit cd57e6c

Please sign in to comment.