diff --git a/magritte/magritte_graph.bzl b/magritte/magritte_graph.bzl index 1ee9561..59dad08 100644 --- a/magritte/magritte_graph.bzl +++ b/magritte/magritte_graph.bzl @@ -161,7 +161,7 @@ def _copy_action_bash(ctx, input_file, output_file): # Copies a file to another file. If the destination directory does not exist # it will be created. (Windows version) def _copy_action_windows(ctx, input_file, output_file): - bat = ctx.actions.declare_file(ctx.label.name + "_cmd.bat") + bat = ctx.actions.declare_file("%s-%s-cmd.bat" % (ctx.label.name, hash(src.path))) file_to_copy = input_file.path.replace("/", "\\") destination_folder = output_file.dirname.replace("/", "\\") ctx.actions.write(