https://pantsbuild.org/ logo
t

thousands-plumber-33255

02/14/2023, 7:33 PM
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

witty-crayon-22786

02/14/2023, 7:38 PM
which version of Pants is this?
and: these are environment variables that you are expecting to be applied during the
package
goal?
t

thousands-plumber-33255

02/14/2023, 7:39 PM
2.15.0rc4
No, during
run
goal
w

witty-crayon-22786

02/14/2023, 7:46 PM
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

thousands-plumber-33255

02/14/2023, 7:49 PM
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

witty-crayon-22786

02/14/2023, 8:16 PM
hm. can you file a bug describing this? sorry for the trouble
t

thousands-plumber-33255

02/14/2023, 8:17 PM
Not sure what you are referring to. The warning or the envs being present?
w

witty-crayon-22786

02/14/2023, 8:19 PM
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

thousands-plumber-33255

02/14/2023, 8:41 PM
6 Views