Skip to content

Commit 851143f

Browse files
authored
Merge pull request #313 from anguslees/gus/revup/master/symlinks
Avoid creating symlinks that point out of output TreeArtifact
2 parents a6ca9c4 + 0472f4e commit 851143f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/internal/compile.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def proto_compile(ctx, options, extra_protoc_args, extra_protoc_files):
414414
# Build copy command for directory outputs
415415
# Use cp {}/. rather than {}/* to allow for empty output directories from a plugin (e.g when
416416
# no service exists, so no files generated)
417-
command_parts = ["mkdir -p {} && cp -r {} '{}'".format(
417+
command_parts = ["mkdir -p {} && cp -rL {} '{}'".format(
418418
# We need to be sure that the dirs exist, see:
419419
# https://github.com/bazelbuild/bazel/issues/6393
420420
" ".join(["'" + d.path + "'" for d in premerge_dirs]),

0 commit comments

Comments
 (0)