How can I nuke pants cache? I cleaned up repo/.pants ~/.cache/pants&nce .. but somethign is still being memoized
e
enough-analyst-54434
06/30/2023, 7:43 PM
Kill pantsd (I use
pkill pantsd
on Linux).
p
purple-plastic-57801
06/30/2023, 7:54 PM
Ah pantsd is keeping it's own state?
e
enough-analyst-54434
06/30/2023, 8:00 PM
Yes. The ~/.cache/pants contains an LMDB database of cached actions (subprocesses run). The live pantsd caches finer-grained rule code invocations 1 layer higher before subprocesses are even run / hit in LMDB cache.
If you run --no-pantsd you will witness just how much is cached at the pantsd layer. Pants is dog slow without that higher layer cache.