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

Avoid pre-fetching for unbounded minimum versions #4149

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

I think we should be able to model PubGrub such that this isn't necessary (at least for the case described in the issue), but for now, let's just avoid attempting to build very old distributions in prefetching.

Closes #4136.

@charliermarsh charliermarsh added the bug Something isn't working label Jun 7, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) June 7, 2024 21:50
Comment on lines +1406 to +1408
// Avoid prefetching source distributions with unbounded lower-bound ranges. This
// often leads to failed attempts to build legacy versions of packages that are
// incompatible with modern build tools.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it :)

Copy link

@potiuk potiuk Jun 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, simple solution to a non-simple problem. Let met confirm it works :)

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.

Starting with 0.2.6+ uv lowest-direct does not respect all limits that are specified conditionally
3 participants