go get results in ‘terminal prompts disabled’ error for github private repo

go get disables the “terminal prompt” by default. This can be changed by setting an environment variable of git:

env GIT_TERMINAL_PROMPT=1 go get github.com/examplesite/myprivaterepo

Leave a Comment