breezy-electrician-41537
06/19/2024, 8:47 AMroot
|-- projA
|-- projB
|-- shared
I have a BUILD file in projB that looks at an env var (e.g. env('DOCKER_REGISTRY')
). When running any pants command for projA, it fails if the env var is not set, but it's unrelated to projA. When running commands for projA, I only care about projA and shared, but not projB. Is there a way to achieve this?curved-television-6568
06/19/2024, 7:18 PMenv("DOCKER_REGISTRY", "na")
(or, via .pants.bootstrap
):
export DOCKER_REGISTRY=${DOCKER_REGISTRY:-some-default-value}
breezy-electrician-41537
06/20/2024, 7:36 AMcurved-television-6568
06/20/2024, 3:31 PM