mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-03 21:23:54 +00:00
Add Git resolver in lieu of static hash map (#3954)
## Summary
This PR removes the static resolver map:
```rust
static RESOLVED_GIT_REFS: Lazy<Mutex<FxHashMap<RepositoryReference, GitSha>>> =
Lazy::new(Mutex::default);
```
With a `GitResolver` struct that we now pass around on the
`BuildContext`. There should be no behavior changes here; it's purely an
internal refactor with an eye towards making it cleaner for us to
"pre-populate" the list of resolved SHAs.
This commit is contained in:
parent
a0652921fc
commit
b7d77c04cc
31 changed files with 475 additions and 384 deletions
|
|
@ -1,7 +1,6 @@
|
|||
pub use distribution_database::{DistributionDatabase, HttpArchivePointer, LocalArchivePointer};
|
||||
pub use download::LocalWheel;
|
||||
pub use error::Error;
|
||||
pub use git::{git_url_to_precise, is_same_reference};
|
||||
pub use index::{BuiltWheelIndex, RegistryWheelIndex};
|
||||
pub use metadata::{ArchiveMetadata, Metadata};
|
||||
pub use reporter::Reporter;
|
||||
|
|
@ -12,7 +11,6 @@ mod archive;
|
|||
mod distribution_database;
|
||||
mod download;
|
||||
mod error;
|
||||
mod git;
|
||||
mod index;
|
||||
mod locks;
|
||||
mod metadata;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue