Does the Go backend support `extra_env_vars`? I ha...
# general
r
Does the Go backend support
extra_env_vars
? I have
Copy code
[test]
extra_env_vars = ["VAR=value"]
in
pants.toml
This works in Python, but those environment is completely empty for Go?
h
You're right - total oversight. It's fairly easy to add. Would you have any interest in implementing it? I'm happy to write up a ticket with instructions. Then we can cherry-pick into the upcoming 2.13 release
r
I am happy to take a shot at it, i was browsing through https://github.com/pantsbuild/pants/blob/bf25e129288e80116220292786f7e6018184173e/src/python/pants/backend/go/goals/test.py and noticed it doesnt fetch the envs
h
Sweet, here are some thoughts 🙂 https://github.com/pantsbuild/pants/issues/15963
r
Thanks Eric!
❤️ 1