mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Retry on permission errors when persisting extracted source distributions to the cache (#5076)
Another case for https://github.com/astral-sh/uv/issues/1491 ref #4606
This commit is contained in:
parent
563507edba
commit
dab7fc7e9f
1 changed files with 1 additions and 1 deletions
|
@ -1320,7 +1320,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
|
|||
fs_err::tokio::create_dir_all(target.parent().expect("Cache entry to have parent"))
|
||||
.await
|
||||
.map_err(Error::CacheWrite)?;
|
||||
fs_err::tokio::rename(extracted, target)
|
||||
rename_with_retry(extracted, target)
|
||||
.await
|
||||
.map_err(Error::CacheWrite)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue