glide 镜像

运行glide install 失败  国内墙的原因, 某些网站上不去

[ERROR]Update failed for golang.org/x/crypto: Cannot detect VCS

[ERROR]Failed to install: Cannot detect VCS

 

通过glide mirror设置

最初参考https://zhuanlan.zhihu.com/p/27994151这篇文章 只设置了一个 

 

glide mirror set golang.org/x/crypto github.com/golang/crypto

发现不成功. 

 

设置了下面一堆  然后运行glide install 成功啦。。

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/sys https://github.com/golang/sys --vcs git

glide mirror set https://golang.org/x/text https://github.com/golang/text --vcs git

glide mirror set https://google.golang.org/grpc https://github.com/grpc/grpc-go --vcs git

glide mirror set https://google.golang.org/genproto https://github.com/google/go-genproto --vcs git

posted @ 2018-09-22 16:14  sandea  阅读(1335)  评论(0编辑  收藏  举报