#20291 Support glob patterns in subprocess-environment env_vars
Issue created by
olivercoleman-switchdin
It was bad enough that I had to spend half a day figuring out why environment variables didn't seem to be working in tests executed via pants as one might reasonably expect 🤪 (when digging around just now I noticed there's been some suggestions that this should be the default behaviour, so consider that a secondary request if you will!)
I eventually found the
subprocess-environment.env_vars option and added the necessary env vars in there.
This feature request is for adding support for specifying env var names with glob patterns. This would be especially handy for:
• groups of env vars like
AWS_DEFAULT_REGION
,
AWS_ACCESS_KEY_ID
, ..., with a single
AWS_*
entry, or
• Including all env vars with a single
*
entry (at least getting closer to the expected behaviour of including all env vars, see whining above ;))
pantsbuild/pants