-
Notifications
You must be signed in to change notification settings - Fork 739
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
Fork when minimum Python version increases #8628
Conversation
4c3d6a6
to
f562f47
Compare
{ | ||
let dep = deps.pop().unwrap(); | ||
let markers = dep.package.marker().cloned().unwrap_or(MarkerTree::TRUE); | ||
for fork in &mut forks { | ||
if !fork.markers.is_disjoint(&markers) { | ||
fork.dependencies.push(dep.clone()); | ||
} | ||
} | ||
continue; | ||
} |
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 just indented. The only change is the extra condition.
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.
Clever!
/// | ||
/// This should resolve successfully, but currently fails [1]. | ||
/// | ||
/// [1]: https://github.com/astral-sh/uv/issues/4668 |
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.
Nice!
Summary
This is a re-implementation of #4712, though is now seemingly much simpler. This issue keeps coming up, and users have a workaround with
tool.uv.environments
, but it's really a bug in the resolver.Closes #4668.