您的位置 首页 golang

Go Module Get Private Repository

go version go1.14

  1. go env -w GOPRIVATE=bitbucket.org
  2. git config url."ssh://git@bitbucket.org/xxx".insteadOf "https://bitbucket.org/xxx"
  3. go mod edit -require=bitbucket.org/xxx/repo@xx-revision
  4. go mod download

参考文章:

  1. https://blog.golang.org/using-go-modules
  2. https://github.com/golang/go/wiki/Modules

文章来源:智云一二三科技

文章标题:Go Module Get Private Repository

文章地址:https://www.zhihuclub.com/2410.shtml

关于作者: 智云科技

热门文章

网站地图