https://pantsbuild.org/ logo
b

brash-baker-91190

12/02/2021, 7:52 PM
🤔 Is there a way to set
local_store_dir
and
named_caches_dir
via environment variables?
h

hundreds-father-404

12/02/2021, 7:52 PM
Yep, any Pants option can be set via env var https://www.pantsbuild.org/docs/options#setting-options
b

brash-baker-91190

12/02/2021, 7:54 PM
Ah yes, just found it; thanks! I was temporarily misled because https://www.pantsbuild.org/docs/troubleshooting#how-to-change-your-cache-directory had no mention of them.
👍 1
h

hundreds-father-404

12/02/2021, 8:14 PM
Oh yeah, that first sentence is misleading:
You may change any of these options in the [GLOBAL] section of your pants.toml:
Any suggestions for how to reword? Maybe link it to the options page also?
b

brash-baker-91190

12/02/2021, 8:45 PM
A link to the options page would be useful, for sure. Maybe something like:
You may change any of these options in the [GLOBAL] section of your pants.toml, or in the environment (LINK TO PAGE)
4 Views