Couldn't find this in the docs... we're advised to...
# general
e
Couldn't find this in the docs... we're advised to use
PANTS_CONFIG_FILES
to use a dedicated CI toml file when running from CI (to disable the dynamic ui among others) but this seems duplicative, and the name
...FILES
seems to imply that we can use multiples. Does this "or" the files together or some such, ie can we
PANTS_CONFIG_FILES=<http://pants.ci|pants.ci>.toml,pants.toml
to not duplicate things, ie have
pants.toml
but overwrite/supplement keys with
<http://pants.ci|pants.ci>.toml
? If so, I assume order matters?
h
Hey Vic, good question. Indeed, you can use multiple. It's a list option: https://www.pantsbuild.org/docs/reference-global#section-pants-config-files https://www.pantsbuild.org/docs/options#list-values When you do
PANTS_CONFIG_FILES=<http://pants.ci|pants.ci>.toml
, that means you're appending to the list, so you still have
pants.toml
. If you want to override, you would set to
'["<http://pants.ci|pants.ci>.toml"]
Also, it's valid to not have a CI config file. It can be useful, but not required
Updated https://www.pantsbuild.org/docs/using-pants-in-ci#pantscitoml-optional to try to clear that up for future users. Feedback appreciated!
e
Thaaank you 🙂 I really did look first, sorry!
h
No need to apologize! The docs weren't as clear as they could have been. Thank you for bringing it up - that's how this project gets better 🙂