Fix repository for compatibility with --incompatible_no_support_tools_in_action_inputs (#156)
This commit is contained in:
parent
bf8a55b668
commit
9aa308e1ef
|
@ -48,7 +48,7 @@ def copy_cmd(ctx, src, dst):
|
|||
|
||||
def copy_bash(ctx, src, dst):
|
||||
ctx.actions.run_shell(
|
||||
inputs = [src],
|
||||
tools = [src],
|
||||
outputs = [dst],
|
||||
command = "cp -f \"$1\" \"$2\"",
|
||||
arguments = [src.path, dst.path],
|
||||
|
|
|
@ -44,7 +44,8 @@ def _impl(ctx):
|
|||
}
|
||||
ctx.actions.run(
|
||||
outputs = ctx.outputs.outs,
|
||||
inputs = depset(direct = ctx.files.srcs, transitive = [tool_inputs]),
|
||||
inputs = ctx.files.srcs,
|
||||
tools = tool_inputs,
|
||||
executable = ctx.executable.tool,
|
||||
arguments = args,
|
||||
mnemonic = "RunBinary",
|
||||
|
|
Loading…
Reference in New Issue