mirror of
https://github.com/astral-sh/uv
synced 2026-01-25 23:40:11 -05:00
Avoid forking on version in non-universal resolutions (#10274)
## Summary Closes https://github.com/astral-sh/uv/issues/10275.
This commit is contained in:
@@ -1328,6 +1328,11 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
|
||||
pins: &mut FilePins,
|
||||
request_sink: &Sender<Request>,
|
||||
) -> Result<Option<ResolverVersion>, ResolveError> {
|
||||
// This only applies to universal resolutions.
|
||||
if env.marker_environment().is_some() {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
// For now, we only apply this to local versions.
|
||||
if !candidate.version().is_local() {
|
||||
return Ok(None);
|
||||
|
||||
Reference in New Issue
Block a user