AFAICT, pex_binaries take env variables from the s...
# general
l
AFAICT, pex_binaries take env variables from the surrounding env. Is there a way to set extra env vars in a BUILD file?
h
To bake them into the .pex file itself to be set at pex runtime? Or to be set at build time?
l
pex runtime
the situation I am in is not ideal, but basically I would like some vars to be set when I
./pants run
global across the repo would actually be ok too
h
Ah, so set on
./pants run
but not when you
./pants package
and then later run the .pex file without Pants?
l
yeah
the more I talk about this the more this seems like a bad idea 🙂
h
Are the values of these vars secrets?
l
no
they are basically pointers to config files
h
Could you set them in your
./pants
script?
As a workaround, anyway
l
yeah I guess so
e