Skip to content

Commit

Permalink
Modify actions in order not to need toolchain param (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotlaja authored Nov 16, 2023
1 parent 9c9beee commit 1a1ee6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rules/private/copy_directory_private.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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("/", "\\")],
Expand All @@ -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],
Expand Down

0 comments on commit 1a1ee6c

Please sign in to comment.