mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-29 19:17:26 +00:00
Store source distribution directly in the cache (#1116)
I want to move towards using the archive bucket exclusively for wheels. We never overwrite source distributions, so there's no need to symlink them.
This commit is contained in:
parent
77351c7874
commit
67b41427cc
1 changed files with 5 additions and 3 deletions
|
|
@ -766,9 +766,11 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
|
||||||
drop(span);
|
drop(span);
|
||||||
|
|
||||||
// Persist the unzipped distribution to the cache.
|
// Persist the unzipped distribution to the cache.
|
||||||
self.build_context
|
fs_err::tokio::create_dir_all(cache_path.parent().expect("Cache entry to have parent"))
|
||||||
.cache()
|
.await
|
||||||
.persist(source_dist_dir, cache_path)
|
.map_err(Error::CacheWrite)?;
|
||||||
|
fs_err::tokio::rename(&source_dist_dir, &cache_path)
|
||||||
|
.await
|
||||||
.map_err(Error::CacheWrite)?;
|
.map_err(Error::CacheWrite)?;
|
||||||
|
|
||||||
Ok(cache_path)
|
Ok(cache_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue