Is there a way to set the cache directory for Pant...
# general
b
Is there a way to set the cache directory for Pants v2? I can't find anything about that in the v2 docs.
p
there are:
--named-caches-dir=<str>
and
--local-store-dir=<str>
You can see default values & help text if you run
./pants help-advanced
there is a ton of stuff under
help-advanced
so I usually use something like
./pants help-advanced | grep --context=5 cache
for search for info there (replace
cache
with whatever the term you are looking for obviously).
w
https://pants.readme.io/docs/using-pants-in-ci#directories-to-cache has some info on this, but doesn’t specify which options those correspond to.
b
Thanks, that helped! I looked in the docs under the Options section (https://pants.readme.io/docs/options) and couldn't find anything about cli flags. Maybe it could make sense to add a reference to the help-advance command there
w
yep, definitely.
h
👍 I'm also working on generating an online options reference.
❤️ 1