Skip to content
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 duplication issue in packages_distributions #24

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

thrau
Copy link
Member

@thrau thrau commented Jul 29, 2024

This PR fixes an issue that @Pive01 raised, where localstack's /_localstack/extension/list endpoint would fail to list extensions installed in developer mode. I pinned it down to this root cause that resolve_distribution_information would raise a ValueError, because localstack-extension-hello-world (for example) would appear twice in packages_distributions().get("helloworld").

As explained in the code doc i added:
With editable installs, packages_distributions() may return the distribution metadata for both the .egg-info in the linked source directory, and the .dist-info in the site-packages directory created by the editable install. Therefore, a distribution name may appear twice for the same package. Subsequently raising a ValueError.

@thrau thrau merged commit ddf2a28 into main Jul 29, 2024
10 checks passed
@thrau thrau deleted the fix-packages_distributions branch July 29, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant