Tag - glide

golang glide VCS    2017-09-25 10:49:39    1010    1    1

glide install失败:

  1. [WARN] Unable to checkout golang.org/x/crypto
  2. [ERROR] Update failed for golang.org/x/crypto: Cannot detect VCS
  3. [WARN] Unable to checkout golang.org/x/net
  4. [ERROR] Update failed for golang.org/x/net: Cannot detect VCS
  5. [ERROR] Failed to install: Cannot detect VCS
  6. 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