Skip to content

Commit 2fd97fb

Browse files
authored
fix: use -R in copy_file(is_dir=True) so macos & linux behavior are the same (#3383)
1 parent b74d12d commit 2fd97fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/github.com/bazelbuild/bazel-skylib/rules/private/copy_file_private.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def copy_cmd(ctx, src, dst):
8585
# buildifier: disable=function-docstring
8686
def copy_bash(ctx, src, dst):
8787
if dst.is_directory:
88-
cmd_tmpl = "rm -rf \"$2\" && cp -rf \"$1/\" \"$2\""
88+
cmd_tmpl = "rm -rf \"$2\" && cp -fR \"$1/\" \"$2\""
8989
mnemonic = "CopyDirectory"
9090
progress_message = "Copying directory %s" % src.path
9191
else:

0 commit comments

Comments
 (0)