anancds / document

MIT License
1 stars 0 forks source link

golang问题汇总 #117

Open anancds opened 3 years ago

anancds commented 3 years ago

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

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

anancds commented 3 years ago

go 配置代理: https://goproxy.io/ go env -w GO111MODULE=on go env -w GOPROXY="https://goproxy.io,direct"

Set environment variable allow bypassing the proxy for selected modules (optional) go env -w GOPRIVATE="*.corp.example.com"

Set environment variable allow bypassing the proxy for specified organizations (optional) go env -w GOPRIVATE="example.com/org_name"