Has anyone gotten `GOPRIVATE` to work for private ...
# general
m
Has anyone gotten
GOPRIVATE
to work for private go deps? I've tried passing it via https://www.pantsbuild.org/docs/reference-golang#subprocess_env_vars and https://www.pantsbuild.org/docs/reference-subprocess-environment, but nothing seems to work. Checking both
__run.sh
and
__run_go.sh
in the failed sandbox don't show any GOPRIVATE env var being passed... Am I holding it wrong?
1
Looks like someone asked here, but that answer didn't work
Ah, ok... I was able to solve this... I needed to pass $HOME to the go job, since we are using
~/.netrc
for creds... So my
pants.toml
looks like:
Copy code
[golang]
subprocess_env_vars.add = [
  "GOPRIVATE=<http://myrepo.com|myrepo.com>",
  "HOME",
]
👍 1