go version go1.14
go env -w GOPRIVATE=bitbucket.org
git config url."ssh://git@bitbucket.org/xxx".insteadOf "https://bitbucket.org/xxx"
go mod edit -require=bitbucket.org/xxx/repo@xx-revision
go mod download
参考文章:
go version go1.14
go env -w GOPRIVATE=bitbucket.org
git config url."ssh://git@bitbucket.org/xxx".insteadOf "https://bitbucket.org/xxx"
go mod edit -require=bitbucket.org/xxx/repo@xx-revision
go mod download
参考文章:
本文标题:Go Module Get Private Repository
本文链接:https://www.haomeiwen.com/subject/xfvszhtx.html
网友评论