astral-sh/uv

uv cache size limit

Open

#5.731 geöffnet am 2. Aug. 2024

Auf GitHub ansehen
 (30 Kommentare) (49 Reaktionen) (0 zugewiesene Personen)Rust (3.111 Forks)batch import
cacheenhancementhelp wantedneeds-design

Repository-Metriken

Stars
 (84.934 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 7T 16h) (259 gemergte PRs in 30 T)

Beschreibung

Unless I missed it, I think currently there is no way to limit the cache size.

I think this would be valuable in ci self-hosted runners where the cache can grow pretty big due to the need to support many python versions packages downloads, we have seen it growing up to ~40GB.

E.g. sccache has a SCCACHE_CACHE_SIZE that sets a maximum size of the cache.

At the moment, if it grows to big you run uv cache clean and start over the game again, but with a cache size limit one wouldn't have to worry.

What do you think?

PS.: thanks for making pip installs great again

Contributor Guide