https://pantsbuild.org/ logo
#general
Title
# general
r

ripe-cpu-85141

08/10/2022, 6:46 PM
Is there some recommendations about managing pants cache? I have my
~/.cache/pants
getting 40GB right now and I'll run out of space soon. I could just
rm -rf .cache/pants
I guess, but I was wondering if there is a command or something to trim old stuff or anything.
h

high-yak-85899

08/10/2022, 6:47 PM
It's for CI, but I think it's also useful for local systems: https://www.pantsbuild.org/docs/using-pants-in-ci#directories-to-cache
r

ripe-cpu-85141

08/10/2022, 6:53 PM
good old
rm -rf
🙂
w

wide-midnight-78598

08/10/2022, 7:24 PM
40GB!!! Can I ask which backends you're using or what you're doing with that? I use pants in multiple projects daily, and I'm at 2GB (cleared it out a week or two ago, while I was doing some backend development work)
I don't think I've ever had it go above like 5?
b

bitter-ability-32190

08/10/2022, 7:25 PM
named_caches
contains the
pex_root
which contains installed packages, which can get HUGE 🙂
r

ripe-cpu-85141

08/10/2022, 8:56 PM
we certainly have a relatively large amount of dependencies but all are below 250MB (otherwise, Lambda would barf 🙂 ). My cache was actually 20GB, I had a
.cache/pants.old
directory that was also 20GB ^^