Prune unused source distributions from the cache (#7112)

## Summary

This has bothered me for a while and should be fairly impactful for
users. It requires a weird implementation, since the
distribution-building crate depends on the cache, and so the prune
operation can't live in the cache, since it needs to access internals of
the distribution-building crate.

Closes https://github.com/astral-sh/uv/issues/7096.
This commit is contained in:
Charlie Marsh 2024-09-05 21:40:51 -04:00 committed by GitHub
parent 1422e18674
commit 93fe3e83be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 213 additions and 10 deletions

View file

@ -4,6 +4,7 @@ pub use error::Error;
pub use index::{BuiltWheelIndex, RegistryWheelIndex};
pub use metadata::{ArchiveMetadata, LoweredRequirement, Metadata, RequiresDist};
pub use reporter::Reporter;
pub use source::prune;
mod archive;
mod distribution_database;