Question about caching... I'm trying to customize ...
# general
f
Question about caching... I'm trying to customize cache locations to isolate some executions. I want to confirm that the env vars/options I need to do this are: •
PANTS_SETUP_CACHE
PANTS_LOCAL_STORE_DIR
PANTS_NAMED_CACHES_DIR
Is there anything else I need to set? Is there an easier way to set this all at once (other than overriding
$XDG_CACHE_HOME
)?
nvm I think I can just add
export XDG_CACHE_HOME=${PANTS_CACHE_DIR:-$XDG_CACHE_HOME}
at the top of the
./pants
shell file
w
yea, that sounds right. https://www.pantsbuild.org/docs/using-pants-in-ci should be accurate on this topic, so if anything is missing edits would be welcome!