Skip to content

Commit 1a1ee6c

Browse files
authored
Modify actions in order not to need toolchain param (#478)
1 parent 9c9beee commit 1a1ee6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rules/private/copy_directory_private.bzl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ if not exist \"{src}\\\" (
5454
is_executable = True,
5555
)
5656
ctx.actions.run(
57-
inputs = [src],
58-
tools = [bat],
57+
inputs = [src, bat],
5958
outputs = [dst],
6059
executable = "cmd.exe",
6160
arguments = ["/C", bat.path.replace("/", "\\")],
@@ -78,7 +77,7 @@ rm -rf \"$2\" && cp -fR \"$1/\" \"$2\"
7877
progress_message = "Copying directory %s" % src.path
7978

8079
ctx.actions.run_shell(
81-
tools = [src],
80+
inputs = [src],
8281
outputs = [dst],
8382
command = cmd,
8483
arguments = [src.path, dst.path],

0 commit comments

Comments
 (0)