Skip to content

Commit

Permalink
feat: add src patch being copied to progress message of vendored copy…
Browse files Browse the repository at this point in the history
…_file

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
  • Loading branch information
gregmagolan committed Jan 12, 2022
1 parent 72c3662 commit 7aafe15
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def copy_bash(ctx, src, dst):
if dst.is_directory:
cmd_tmpl = "rm -rf \"$2\" && cp -rf \"$1/\" \"$2\""
mnemonic = "CopyDirectory"
progress_message = "Copying directory"
progress_message = "Copying directory %s" % src.path
else:
cmd_tmpl = "cp -f \"$1\" \"$2\""
mnemonic = "CopyFile"
progress_message = "Copying file"
progress_message = "Copying file %s" % src.path

ctx.actions.run_shell(
tools = [src],
Expand Down

0 comments on commit 7aafe15

Please sign in to comment.