We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c497f0 commit 20d3c25Copy full SHA for 20d3c25
1 file changed
python/private/py_executable.bzl
@@ -704,10 +704,15 @@ def _build_link_map(entries):
704
# node
705
pkg_link_map.pop(package, None)
706
707
- # Overwrite any existing values because this is closer to the terminal node
708
link_map = pkg_link_map.setdefault(package, {})
709
kind_map = link_map.setdefault(entry.kind, {})
710
- kind_map[entry.venv_path] = entry.link_to_path
+
+ if entry.venv_path in kind_map:
711
+ # We ignore duplicates by design. The dependency closer to the
712
+ # binary gets precedence due to the topological ordering.
713
+ continue
714
+ else:
715
+ kind_map[entry.venv_path] = entry.link_to_path
716
717
# An empty link_to value means to not create the site package symlink.
718
# Because of the topological ordering, this allows binaries to remove
0 commit comments