astral-sh/uv

uv cache size limit

Open

#5731 aperta il 2 ago 2024

Vedi su GitHub
 (30 commenti) (48 reazioni) (0 assegnatari)Rust (3111 fork)batch import
cacheenhancementhelp wantedneeds-design

Metriche repository

Star
 (84.934 star)
Metriche merge PR
 (Merge medio 7g 16h) (259 PR mergiate in 30 g)

Descrizione

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

Guida contributor