1. 程式人生 > >glide 下載golang.org包問題

glide 下載golang.org包問題

開發十年,就只剩下這套架構體系了! >>>   

今天編譯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-g