Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/private/install.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ class NativeInstaller(object):

def _do_file_copy(self, src, dest):
logging.debug("COPY %s <- %s", dest, src)
# Windows --enable_runfiles uses directory junctions for every runfile.
# Junctions cannot point at files, so open() fails with Permission denied.
# Follow the reparse point to the real bazel-out file.
src = os.path.realpath(src)
# Copy to a temporary directory and then move it to the destination.
# This ensures code-signed executables on certain platforms
# behave correctly.
Expand Down