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

better-nail-12700

06/18/2020, 1:38 PM
Is there a way to set the cache directory for Pants v2? I can't find anything about that in the v2 docs.
p

polite-garden-50641

06/18/2020, 3:28 PM
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

witty-crayon-22786

06/18/2020, 5:12 PM
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

better-nail-12700

06/18/2020, 5:43 PM
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

witty-crayon-22786

06/18/2020, 5:43 PM
yep, definitely.
h

happy-kitchen-89482

06/18/2020, 6:12 PM
👍 I'm also working on generating an online options reference.
❤️ 1
2 Views