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

Validate successful metadata fetch for direct dependencies #5392

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Prior to this change, the resolver would panic if we ran with --offline and --no-deps and we had cached metadata for a package (i.e., the versions) but no cached metadata for the distribution (i.e., the specific wheel), since we weren't validating that the returned metadata in the --no-deps case was actually successful. (We need metadata, even for --no-deps, so that we can validate extras.)

Test Plan

The added test panics on the previous branch.

@charliermarsh charliermarsh added the bug Something isn't working label Jul 24, 2024
@charliermarsh charliermarsh force-pushed the charlie/extract branch 3 times, most recently from 50ba902 to 7ba49f2 Compare July 24, 2024 19:23
Base automatically changed from charlie/extract to main July 24, 2024 19:34
@charliermarsh charliermarsh enabled auto-merge (squash) July 24, 2024 19:35
@charliermarsh charliermarsh merged commit d11d11e into main Jul 24, 2024
55 checks passed
@charliermarsh charliermarsh deleted the charlie/off branch July 24, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant