1

replace run_shell with run

This commit is contained in:
Motiejus Jakštys 2023-03-22 10:43:29 +02:00 committed by Motiejus Jakštys
parent 3630f62053
commit 0e12e84103

View File

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