<#17482 subsystem flag leaking process environment...
# github-notifications
q
#17482 subsystem flag leaking process environment Issue created by davidreuss Describe the bug I have a project where i use
--env
as a flag name for my subsystem. That resulted in the current calculated value (even when a string default is set) is set to the full dump of my local process environment.
Copy code
PANTS_MY_SUBSYSTEM_ENV
  env
      default: my-default
      current value: namespace(__CFBundleI ..... continues with a full dump of my OS process environment)
This is the result when you have a flag configured like:
Copy code
env = StrOption(….)
or
Copy code
my_env = StrOption(flag_name="--env" …)
Pants version
2.14.0
OS Are you encountering the bug on MacOS, Linux, or both? MacOS - i don't know if this is an OS specific bug or not. Additional info This is a backfill issue for a request that was already answered via slack. pantsbuild/pants
u