Add progress bar for uv cache clean (#8857)

## Summary

Closes #8786
This commit is contained in:
Jo 2024-11-07 00:43:43 +08:00 committed by GitHub
parent 987d778631
commit dcd24b7c42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 171 additions and 127 deletions

View file

@ -1995,8 +1995,8 @@ pub fn prune(cache: &Cache) -> Result<Removal, Error> {
"Removing dangling source revision: {}",
sibling.path().display()
);
removal +=
uv_cache::rm_rf(sibling.path()).map_err(Error::CacheWrite)?;
removal += uv_cache::rm_rf(sibling.path(), None)
.map_err(Error::CacheWrite)?;
}
}
}
@ -2020,8 +2020,8 @@ pub fn prune(cache: &Cache) -> Result<Removal, Error> {
"Removing dangling source revision: {}",
sibling.path().display()
);
removal +=
uv_cache::rm_rf(sibling.path()).map_err(Error::CacheWrite)?;
removal += uv_cache::rm_rf(sibling.path(), None)
.map_err(Error::CacheWrite)?;
}
}
}