mirror of
https://github.com/astral-sh/uv.git
synced 2025-12-05 01:22:11 +00:00
Allow user to constrain supported lock environments (#6210)
## Summary The strategy here is: if the user provides supported environments, we use those as the initial forks when resolving. As a result, we never add or explore branches that are disjoint with the supported environments. (If the supported environments change, we ignore the lockfile entirely, so we don't have to worry about any interactions between supported environments and the preference forks.) Closes https://github.com/astral-sh/uv/issues/6184.
This commit is contained in:
parent
d02c202eb2
commit
3395d24959
28 changed files with 790 additions and 49 deletions
|
|
@ -626,9 +626,9 @@ enum FastPathRev {
|
|||
/// date with what this rev resolves to on GitHub's server.
|
||||
UpToDate,
|
||||
/// The following SHA must be fetched in order for the local rev to become
|
||||
/// up to date.
|
||||
/// up-to-date.
|
||||
NeedsFetch(GitOid),
|
||||
/// Don't know whether local rev is up to date. We'll fetch _all_ branches
|
||||
/// Don't know whether local rev is up-to-date. We'll fetch _all_ branches
|
||||
/// and tags from the server and see what happens.
|
||||
Indeterminate,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue