astral-sh/uv

uv cache size limit

Open

#5,731 opened on Aug 2, 2024

View on GitHub
 (28 comments) (43 reactions) (0 assignees)Rust (84,934 stars) (3,111 forks)batch import
cacheenhancementhelp wantedneeds-design

Description

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