mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
![]() ## Summary Use the lockfile to prefill the `InMemoryIndex` used by the resolver. This enables us to resolve completely from the lockfile without making any network requests/builds if the requirements are unchanged. It also means that if new requirements are added we can still avoid most I/O during resolution, partially addressing https://github.com/astral-sh/uv/issues/3925. The main limitation of this PR is that resolution from the lockfile can fail if new versions are requested that are not present in the lockfile, in which case we have to perform a fresh resolution. Fixing this would likely require lazy version/metadata requests by `VersionMap` (this is different from the lazy parsing we do, the list of versions in a `VersionMap` is currently immutable). Resolves https://github.com/astral-sh/uv/issues/3892. ## Test Plan Added a `deterministic!` macro that ensures that a resolve from the lockfile and a clean resolve result in the same lockfile output for all our current tests. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |