worried-salesclerk-37834
11/02/2021, 2:54 PMhundreds-father-404
11/02/2021, 3:05 PMPANTS_CONFIG_FILE=pants.custom.toml
, that uses the "implicit add" syntax for list options, so yes is additive
Otherwise, if you use list syntax, you could override it: https://www.pantsbuild.org/docs/options#list-valuesfresh-cat-90827
11/02/2021, 3:49 PMPANTS_CONFIG_FILES=pants.ci.toml
and confirm it’s additive.
https://www.pantsbuild.org/docs/using-pants-in-ci#configuring-pants-for-ci-pantscitoml-optionalworried-salesclerk-37834
11/02/2021, 4:09 PMworried-salesclerk-37834
11/02/2021, 4:10 PMcurved-television-6568
11/02/2021, 4:20 PMcurved-television-6568
11/02/2021, 4:21 PMworried-salesclerk-37834
11/02/2021, 4:22 PMus-east1.pkg.dev/$(whoami)-repo-name/image-name
), but open to other solutions.worried-salesclerk-37834
11/02/2021, 4:41 PMworried-salesclerk-37834
11/03/2021, 12:58 PMcurved-television-6568
11/03/2021, 1:04 PMcurved-television-6568
11/03/2021, 1:09 PMcurved-television-6568
11/03/2021, 1:11 PMdocker_image(repository="{directory}/{name}", ...)
You would want to write:
# not supported..
docker_image(repository="{env.USER}-repo-name/{name}")
curved-television-6568
11/03/2021, 1:13 PMcustom_docker_image(…)
into a docker_image(repository="custom-value", …)
… and have the macro look up the value you want to use. Not entirely sure what the env
will look like for macros, though.curved-television-6568
11/03/2021, 1:19 PMcurved-television-6568
11/03/2021, 1:22 PMexport PANTS_DOCKER_DEFAULT_REPOSITORY="$(whoami)-repo-name/{name}"
then that would set the repo per user invoking `./pants`…curved-television-6568
11/03/2021, 1:26 PM[docker.registries.us-east]
address = "us-east1.pkg.dev"
default = true
worried-salesclerk-37834
11/03/2021, 2:52 PM