enough-analyst-54434
03/19/2021, 12:31 AMARCHFLAGS
env var to tests for ci. This appears to require a code change to expand the hardcoded SETTABLE_ENV_VARS
list in src/python/pants/core/util_rules/subprocess_environment.py
. Is that true or am I missing some other way? If it is true is that viewed as good or necessary? It seems I should be able to allow any env var through I want if I go through the effort to set the option.hundreds-father-404
03/19/2021, 12:33 AMProcess
I think we probably need to loose it and use a blocklist approach, e.g. block PATH
enough-analyst-54434
03/19/2021, 12:35 AMenough-analyst-54434
03/19/2021, 12:35 AMhundreds-father-404
03/19/2021, 12:35 AM[python-natiev-code].{cpp,ld}_flags
, which should instead move to subprocess_environment
. I tried doing that two months ago but couldn't figure out how to deprecate cleanly and moved on to bigger priorities 🤷‍♂️happy-kitchen-89482
03/19/2021, 12:35 AMhappy-kitchen-89482
03/19/2021, 12:35 AMhundreds-father-404
03/19/2021, 12:36 AMI'm even fine with allowlisting, its just a pretty bad experience to be told you can't.To be clear, I meant that Pants's code should blocklist. Users will still allowlist via the option
enough-analyst-54434
03/19/2021, 12:36 AMwitty-crayon-22786
03/19/2021, 12:37 AMwitty-crayon-22786
03/19/2021, 12:38 AMtest
goal. the env var won’t go to pex compilation (which is what the subprocess environment is for, afaik)witty-crayon-22786
03/19/2021, 12:39 AMhundreds-father-404
03/19/2021, 12:39 AMenough-analyst-54434
03/19/2021, 12:40 AMenough-analyst-54434
03/19/2021, 12:40 AMwitty-crayon-22786
03/19/2021, 12:42 AMwitty-crayon-22786
03/19/2021, 12:44 AMhundreds-father-404
03/19/2021, 12:44 AM[python-native-code]
should merge into [subprocess-environment]
this is a good first stepwitty-crayon-22786
03/19/2021, 12:45 AM2. not every Process is wired to use this, including things like running Protoc.
3.Âum, maybe. it’s also possible that they should be split out and be specific, rather than all being unified. this was a usecase for “scoped” Subsystems should merge intoÂ[python-native-code]
[subprocess-environment]
witty-crayon-22786
03/19/2021, 12:46 AMwitty-crayon-22786
03/19/2021, 12:47 AM