Fix for --incompatible_no_support_tools_in_action_inputs on Windows (#157)
Error identified with Bazel CI: https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/120#4bcecf1f-c7d3-4de2-ba63-1ea125faa54e
diff --git a/rules/private/copy_file_private.bzl b/rules/private/copy_file_private.bzl
index b531815..7549585 100644
--- a/rules/private/copy_file_private.bzl
+++ b/rules/private/copy_file_private.bzl
@@ -37,7 +37,8 @@
is_executable = True,
)
ctx.actions.run(
- inputs = [src, bat],
+ inputs = [src],
+ tools = [bat],
outputs = [dst],
executable = "cmd.exe",
arguments = ["/C", bat.path.replace("/", "\\")],