From ddc985c3d78c62d485d4afb7054b4e1d21827cb7 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Sun, 9 Jan 2022 15:39:09 -0800 Subject: [PATCH] feat: add src patch being copied to progress message of vendored copy_file (#3206) With copy_file#is_directory being a very common code path with exports_directories_only, more detail in the progress messages makes for a much better DX --- .../bazel-skylib/rules/private/copy_file_private.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/github.com/bazelbuild/bazel-skylib/rules/private/copy_file_private.bzl b/third_party/github.com/bazelbuild/bazel-skylib/rules/private/copy_file_private.bzl index 307242d881..07bf19f310 100644 --- a/third_party/github.com/bazelbuild/bazel-skylib/rules/private/copy_file_private.bzl +++ b/third_party/github.com/bazelbuild/bazel-skylib/rules/private/copy_file_private.bzl @@ -53,11 +53,11 @@ def copy_cmd(ctx, src, dst): if dst.is_directory: cmd_tmpl = "@xcopy \"%s\" \"%s\\\" /V /E /H /Y /Q >NUL" mnemonic = "CopyDirectory" - progress_message = "Copying directory" + progress_message = "Copying directory %s" % src.path else: cmd_tmpl = "@copy /Y \"%s\" \"%s\" >NUL" mnemonic = "CopyFile" - progress_message = "Copying file" + progress_message = "Copying file %s" % src.path ctx.actions.write( output = bat,