uv/crates/uv-cache/src
Ahmed Ilyas 6c8ce1d013
uv cache prune removes all cached environments (#4845)
## Summary

Resolves #4802

## Test Plan
- `cargo test`
```sh
❯ cargo run -- cache prune -v
Pruning cache at: /Users/ahmedilyas/Library/Caches/uv
No unused entries found
❯ cargo run -- tool run cowsay
warning: `uv tool run` is experimental and may change without warning.
Resolved 1 package in 182ms
Installed 1 package in 20ms
 + cowsay==6.1
usage: Cowsay [-h] [-c CHARACTER] -t TEXT [-v]
Cowsay: error: the following arguments are required: -t/--text
❯ cargo run -- cache prune -v
Pruning cache at: /Users/ahmedilyas/Library/Caches/uv
    0.793440s DEBUG uv_cache Removing dangling cache entry: /Users/ahmedilyas/Library/Caches/uv/environments-v1/095cd7c4c298a0d8
Removed 41 files (143.5KiB)
```
2024-07-06 19:37:15 +00:00
..
archive.rs Store IDs rather than paths in the cache (#2985) 2024-04-10 21:07:51 -04:00
by_timestamp.rs Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
cli.rs fix: remove unused Result in uv-cache (#3875) 2024-05-28 09:19:08 +00:00
lib.rs uv cache prune removes all cached environments (#4845) 2024-07-06 19:37:15 +00:00
removal.rs Make cache clearing robust to directories without read permissions (#3524) 2024-05-11 17:02:25 +00:00
timestamp.rs Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
wheel.rs Remove special-casing for editable requirements (#3869) 2024-05-28 15:49:34 +00:00