-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix third_party.exposed()
.
#2330
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,13 +213,11 @@ def iter_installed_vendor_importers( | |
): | ||
# type: (...) -> Iterator[VendorImporter] | ||
root = cls._abs_root(root) | ||
vendored_paths = set(cls._vendored_path_items()) | ||
for importer in cls._iter_all_installed_vendor_importers(): | ||
# All Importables for a given VendorImporter will have the same prefix. | ||
if importer._importables and importer._importables[0].prefix == prefix: | ||
if importer._root == root: | ||
if {importable.path for importable in importer._importables} == vendored_paths: | ||
yield importer | ||
yield importer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comparison of the vendored paths at runtime (from the PEX I'm not sure why I added this check in the 1st place back in #624 when I introduced vendoring / the |
||
|
||
@classmethod | ||
def install_vendored( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the simpler check that existed pre-#2328. It was always the right check; it's just that
third_party.exposed()
was broken at PEX runtime.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And all is well here. Performing this change 1st led to a failing
test_boot_identification_leak
test, and then fixing below got that passing again.