modern-smartphone-82928
03/04/2024, 2:27 AMPANTS_CONFIG_FILES=pants.ci.toml
which seems to implicitly be an additional to pants.toml
However when configuring the environment variable with multiple files, eg PANTS_CONFIG_FILES="['<http://pants.ci|pants.ci>.toml', '<http://pants.ci|pants.ci>.integration.test.toml']"
,
it seems to no longer be implicitly be an additional to the pants.toml
And needing to explicitly include pants.toml PANTS_CONFIG_FILES="['pants.toml', '<http://pants.ci|pants.ci>.toml', '<http://pants.ci|pants.ci>.integration.test.toml']"
Question is, when using as a list, will I need to include all configs?broad-processor-92400
03/04/2024, 2:43 AMPANTS_CONFIG_FILES="+[...]"
with the +
.
See https://www.pantsbuild.org/2.19/docs/using-pants/key-concepts/options#list-values for more details, particularly the sections "Environment variables" and "Add/remove semantics"modern-smartphone-82928
03/04/2024, 2:47 AMPANTS_CONFIG_FILES
as a list, the expected behaviour is to include all config files, including pants.toml
broad-processor-92400
03/04/2024, 2:51 AM+
syntax allows explicitly appending.modern-smartphone-82928
03/04/2024, 2:59 AMPANTS_CONFIG_FILES="+['<http://pants.ci|pants.ci>.toml', '<http://pants.ci|pants.ci>.integration.test.toml']"
is equal to PANTS_CONFIG_FILES="['pants.toml', '<http://pants.ci|pants.ci>.toml', '<http://pants.ci|pants.ci>.integration.test.toml']"
curved-television-6568
03/04/2024, 7:43 AMpants global --help-advanced
shows all options, with default and current values, so you can verify actual outcome of your settings:
--pants-config-files="['<str>', '<str>', ...]"
PANTS_CONFIG_FILES
pants_config_files
default: [
"/Users/x/proj/gh/pantsbuild/pants/pants.toml"
]
current value: [
"/Users/x/proj/gh/pantsbuild/pants/pants.toml"
]
Paths to Pants config files. This may only be set through the environment variable `PANTS_CONFIG_FILES` and the command line argument `--pants-config-files`; it will be ignored if in a config file like
`pants.toml`.
modern-smartphone-82928
03/04/2024, 7:57 AMcurved-television-6568
03/04/2024, 11:34 AM