Skip to content

Commit

Permalink
Retry on permission errors when persisting extracted source distribut…
Browse files Browse the repository at this point in the history
…ions to the cache (#5076)

Another case for #1491

ref #4606
  • Loading branch information
zanieb authored Jul 15, 2024
1 parent 563507e commit dab7fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/uv-distribution/src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand Down

0 comments on commit dab7fc7

Please sign in to comment.