Set GOPRIVATE
for golang build & test
#18515
Unanswered
misterikkit
asked this question in
Q&A
Replies: 2 comments 3 replies
-
You can set env vars for all processes in pants.toml, using this option: https://www.pantsbuild.org/docs/reference-subprocess-environment#env_vars |
Beta Was this translation helpful? Give feedback.
3 replies
-
@benjyw Thanks for the quick response! I'm getting inconsistent results trying this, which tells me I'm holding it wrong. Will experiment further. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to specify environment variables to the go toolchain? Specifically, I work across a set of git repos hosted on a private server, and must set
GOPRIVATE=my.server.domain.name
for builds to work at all.I would assume this gets configured in
pants.toml
, but I did not find a concise listing of the configuration options in go support. (I also saw nothing relevant in go_binary)Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions