-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support glob patterns in subprocess-environment env_vars #20291
Comments
Guessing this should also be applied to the extra_env_vars option, if it were to be applied at all. |
Here's a fun edge case: I think This is probably acceptable, though. |
Agree this would also be helpful for passing in Terraform environment variables all at once ( |
Some kind of prefix matching would be really helpful in the StackStorm repo where I've been adding test-specific-config env vars. So far I have 23 vars listed in All but 2 of them have the same prefix |
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:
AWS_DEFAULT_REGION
,AWS_ACCESS_KEY_ID
, ..., with a singleAWS_*
entry, or*
entry (at least getting closer to the expected behaviour of including all env vars, see whining above ;))The text was updated successfully, but these errors were encountered: