The failure message for go get to download a private repository says:
exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
The guidance at https://golang.org/doc/faq#git_https only mentions:
Git can be configured to authenticate over HTTPS or to use SSH in place of HTTPS. To authenticate over HTTPS, you can add a line to the $HOME/.netrc file that git consults ...
Which is insufficient, it is in fact also crucial set GOPRIVATE= environment variable to include the repository paths, or go get will be contacting proxy and sum DB and fail.
Please update golang.org/doc/faq#git_https and mention the mandatory usage of GOPRIVATE= in combination with the authentication trick there.
The failure message for
go getto download a private repository says:The guidance at https://golang.org/doc/faq#git_https only mentions:
Which is insufficient, it is in fact also crucial set
GOPRIVATE=environment variable to include the repository paths, orgo getwill be contacting proxy and sum DB and fail.Please update golang.org/doc/faq#git_https and mention the mandatory usage of
GOPRIVATE=in combination with the authentication trick there.