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

flat-zoo-31952

01/10/2022, 6:58 PM
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

witty-crayon-22786

01/10/2022, 7:22 PM
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!
6 Views