失败信息:

[WARN]    Unable to checkout golang.org/x/net
[ERROR]    Update failed for golang.org/x/net: Cannot detect VCS
[WARN]    Unable to checkout golang.org/x/sys
[ERROR]    Update failed for golang.org/x/sys: Cannot detect VCS
[WARN]    Unable to checkout golang.org/x/text
[ERROR]    Update failed for golang.org/x/text: Cannot detect VCS

 

以通过设置golang.org镜像到github.com/golang 来解决

1 $ glide mirror set https://golang.org/x/mobile https://github.com/golang/mobile --vcs git
2 $ glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto --vcs git
3 $ glide mirror set https://golang.org/x/net https://github.com/golang/net --vcs git
4 $ glide mirror set https://golang.org/x/tools https://github.com/golang/tools --vcs git
5 $ glide mirror set https://golang.org/x/text https://github.com/golang/text --vcs git
6 $ glide mirror set https://golang.org/x/image https://github.com/golang/image --vcs git
7 $ glide mirror set https://golang.org/x/sys https://github.com/golang/sys --vcs git

 

posted on 2018-05-14 17:11  九重霄  阅读(3134)  评论(0编辑  收藏  举报