mirror of https://github.com/astral-sh/uv
Avoid forking on version in non-universal resolutions (#10274)
## Summary Closes https://github.com/astral-sh/uv/issues/10275.
This commit is contained in:
parent
a3307d91a3
commit
2eba52f674
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue