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

echoing-nightfall-72095

01/21/2021, 12:28 PM
Am I correct that when setting up for CI/CD I need both a
pants.toml
and a
<http://pants.ci|pants.ci>.toml
? I have set the env_var
PANTS_CONFIG_FILES=<http://pants.ci|pants.ci>.toml
. Linting complains that the version should be set in the GLOBAL section in
pants.toml
. But I have specified it in
<http://pants.ci|pants.ci>.toml
.
Copy code
[GLOBAL]
pants_version = "2.2.0"
I thought maybe it does not use that env_var. I tested setting the env_var and removing pants.ci.toml, then it complains that pant.ci.toml is missing as it should. So the only way to make it work for me is having both and files. I can of course rename the
<http://pants.ci|pants.ci>.toml
to
pants.toml
and not setting the env_var.
h

hundreds-father-404

01/21/2021, 3:15 PM
Hi! You do not need pants.ci.toml, only it's often a useful pattern to augment/override settings that are only useful in CI. pants.toml will still be used too Yes, pants_version should be in pants.toml and there's no need to put it in both
e

echoing-nightfall-72095

01/22/2021, 7:27 AM
Alright, thanks 🙂 I didn’t get that from the docs, but reading it again now I can see that it is hinted. guess it could be clearer, but I’ll leave that up to you guys to decide upon 😄
👍 1
5 Views