The <environment >field has been added to the `pex...
# general
t
The environment field has been added to the
pex_binary
target recently. When I specify a local environment where envs are set thourgh
subprocess_environment_env_vars
I am still seeing the host envs and those of the environment. Is this intended?
@witty-crayon-22786 As you are the author of the PR, do you know?
w
which version of Pants is this?
and: these are environment variables that you are expecting to be applied during the
package
goal?
t
2.15.0rc4
No, during
run
goal
w
the environment variables in
subprocess_environment_env_vars
are only applied to packaging, afaik… but also:
run
will not run a target inside of an environment (yet): you should be seeing a warning rendered
t
But those envs get applied if I do run a python sources file instead of a PEX.
And no warning when running the PEX
w
hm. can you file a bug describing this? sorry for the trouble
t
Not sure what you are referring to. The warning or the envs being present?
w
filing the use case as one issue (“i expected this to work, but it didn’t”) would be most helpful, as we can think about it holistically. it might be multiple separate bugs, but easier to tease that apart from the one use case.
t