go mod中需要replace的内容

aries 发表于 2019-05-28 1926 次浏览 标签 : go

把如下内容放到go.mod

就不会出现golang.org/xxxx中的包下载不了的情况了!

replace golang.org/x/text => github.com/golang/text latest
replace golang.org/x/net => github.com/golang/net latest
replace golang.org/x/crypto => github.com/golang/crypto latest
replace golang.org/x/tools => github.com/golang/tools latest
replace golang.org/x/sync => github.com/golang/sync latest
replace golang.org/x/sys => github.com/golang/sys latest
replace cloud.google.com/go => github.com/googleapis/google-cloud-go latest
replace google.golang.org/genproto => github.com/google/go-genproto latest
replace golang.org/x/exp => github.com/golang/exp latest
replace golang.org/x/time => github.com/golang/time latest
replace golang.org/x/oauth2 => github.com/golang/oauth2 latest
replace golang.org/x/lint => github.com/golang/lint latest
replace google.golang.org/grpc => github.com/grpc/grpc-go latest
replace google.golang.org/api => github.com/googleapis/google-api-go-client latest
replace google.golang.org/appengine => github.com/golang/appengine latest
replace golang.org/x/mobile => github.com/golang/mobile latest
replace golang.org/x/image => github.com/golang/image latest

0条评论

如需评论,请填写表单。
换一个

记住我的信息