Does `pants` have a `clean` equivalent? Specifical...
# general
b
Does
pants
have a
clean
equivalent? Specifically looking to clean: • The cache • Previously leaked tempdirs used for debugging
w
it does not. the cache is garbage collected to a target size by
pantsd
(although it won’t shrink below a high water mark)
but https://github.com/pantsbuild/pants/issues/11167 covers adding an explicit goal for managing caches
are you looking to clear the cache due to a bug, or for space savings?
b
I want to do cold-cache/warm-cache comparisons
Any thoughts on the leaked tempdirs?
h
I usually nuke those manually, but we should probably give them their own namespace under your tmpdir so it's easier to find them
w
yea. they’re namespaced with a prefix, but not under a directory
b
Are y'all open to a feature request / PR that puts them in a named subdirectory?
w
fire away
🙌 1
b
I've started this effort. I'll need some hand-holding for some of the pieces. The
pants
code is still very mystical to me 🙂
h
The rules model is very powerful but takes a little getting used to
Although in this case I think you won't need to know much about that