https://pantsbuild.org/ logo
r

rich-king-51691

06/28/2022, 2:47 PM
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

hundreds-father-404

06/28/2022, 2:54 PM
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

rich-king-51691

06/28/2022, 3:10 PM
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

hundreds-father-404

06/28/2022, 4:19 PM
Sweet, here are some thoughts 🙂 https://github.com/pantsbuild/pants/issues/15963
r

rich-king-51691

06/28/2022, 4:32 PM
Thanks Eric!
❤️ 1
3 Views