Can I pass environment variables to `./pants expor...
# general
a
Can I pass environment variables to
./pants export ::
? When I run the command it fails on compiling grpcio (MacOS). I have solved it by setting a few env variables in my zsh profile, but they don't seem to be present when
./pants export ::
runs.
I was expecting something like PANTS_DOCKER_ENV_VARS?
e
Why were you expecting the "docker" part? You'll actually want https://www.pantsbuild.org/docs/reference-subprocess-environment#env_vars; so:
Copy code
[subprocess-environment]
env_vars = [ ... ]
Its an unfortunately big hammer that pokes the env var hole into ~every process Pants runs, but that's the only option at the moment I believe.
a
I wasn't expecting the docker part ro work, but that something similar would exist 🙂 Subprocess environment, I'll use that. Thank you!