Is there some recommendations about managing pants...
# general
r
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
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
good old
rm -rf
🙂
w
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
named_caches
contains the
pex_root
which contains installed packages, which can get HUGE 🙂
r
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 ^^