From 0e12e841037bb759b388724b254b69f779cb6e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 22 Mar 2023 10:43:29 +0200 Subject: [PATCH] replace run_shell with run --- rules/platform.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/platform.bzl b/rules/platform.bzl index 1d84c14..6ec08c7 100644 --- a/rules/platform.bzl +++ b/rules/platform.bzl @@ -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(