Skip to content

Commit

Permalink
doc: why symlink <name>.zip under Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
  • Loading branch information
f0rmiga committed Nov 28, 2022
1 parent ca49f8b commit 906bb6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/config_settings/transition.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def _transition_py_impl(ctx):
)
zipfile_symlink = None
if target_is_windows:
# Under Windows, the expected "<name>.zip" does not exist, so we have to
# create the symlink ourselves to achieve the same behaviour as in macOS
# and Linux.
zipfile = None
expected_target_path = target[DefaultInfo].files_to_run.executable.short_path[:-4] + ".zip"
for file in target[DefaultInfo].default_runfiles.files.to_list():
Expand Down

0 comments on commit 906bb6a

Please sign in to comment.