今天编译Uber的Aresgo。依赖管理用 glide,下载golang.org 包的时候遇到问题。
方法一:
设置 glide mirror
glide mirror set https://golang.org/x/mobile https://github.com/golang/mobile --vcs git
glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto --vcs git
glide mirror set https://golang.org/x/net https://github.com/golang/net --vcs git
glide mirror set https://golang.org/x/tools https://github.com/golang/tools --vcs git
glide mirror set https://golang.org/x/text https://github.com/golang/text --vcs git
glide mirror set https://golang.org/x/image https://github.com/golang/image --vcs git
glide mirror set https://golang.org/x/sys https://github.com/golang/sys --vcs git
$ glide init
$ glide install
方法二:
GOPROXY
https://shockerli.net/post/go-get-golang-org-x-solution/
来源:oschina
链接:https://my.oschina.net/u/612750/blog/3025988