From 1a1ee6c2308fc474ddb57c24e0aa82c58c11de1b Mon Sep 17 00:00:00 2001 From: kotlaja Date: Thu, 16 Nov 2023 15:04:55 +0100 Subject: [PATCH] Modify actions in order not to need toolchain param (#478) --- rules/private/copy_directory_private.bzl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rules/private/copy_directory_private.bzl b/rules/private/copy_directory_private.bzl index da60c8b..650e17e 100644 --- a/rules/private/copy_directory_private.bzl +++ b/rules/private/copy_directory_private.bzl @@ -54,8 +54,7 @@ if not exist \"{src}\\\" ( is_executable = True, ) ctx.actions.run( - inputs = [src], - tools = [bat], + inputs = [src, bat], outputs = [dst], executable = "cmd.exe", arguments = ["/C", bat.path.replace("/", "\\")], @@ -78,7 +77,7 @@ rm -rf \"$2\" && cp -fR \"$1/\" \"$2\" progress_message = "Copying directory %s" % src.path ctx.actions.run_shell( - tools = [src], + inputs = [src], outputs = [dst], command = cmd, arguments = [src.path, dst.path],