1
Fork 0

replace run_shell with run

main
Motiejus Jakštys 2023-03-22 10:43:29 +02:00 committed by Motiejus Jakštys
parent 3630f62053
commit 0e12e84103
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ def _platform_binary_impl(ctx):
platform_sanitized = ctx.attr.platform.replace("/", "_").replace(":", "_")
dst = ctx.actions.declare_file("{}-{}".format(paths.basename(ctx.file.src.path), platform_sanitized))
src = ctx.file.src
ctx.actions.run_shell(
ctx.actions.run(
outputs = [dst],
inputs = [src],
command = "cp $1 $2",
executable = "cp",
arguments = [src.path, dst.path],
)
return [DefaultInfo(