- 配置GOPRIVATE
go env -w GOPRIVATE=xxx.com
go env -w GONOSUMDB=xxx.com
go env -w GONOPROXY=xxxx.com
- 配置GOINSECURE(如果是http的设置下,https的不用)
go env -w GOINSECURE=xxx.com
- 修改git config
git config --global url."git@xxx.com:".insteadof "http://xxx.com/"
go env -w GOPRIVATE=xxx.com
go env -w GONOSUMDB=xxx.com
go env -w GONOPROXY=xxxx.com
go env -w GOINSECURE=xxx.com
本文标题:go get 私有库
本文链接:https://www.haomeiwen.com/subject/xbfwudtx.html
网友评论