美文网首页golang
使用 glide install 或 glide up 时报 C

使用 glide install 或 glide up 时报 C

作者: 别瞄我 | 来源:发表于2018-03-06 17:46 被阅读2280次

问题

使用 glide installglide up 时报 Cannot detect VCS

image.png

解决

这个是国内访问golang.org被墙导致的
解决方法如下:
glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto

理论上这样后再执行 glide installglide up 就可以了

  1. 如果按上面方式还不行的话,尝试如下方法:
    rm -rf ~/.glide
    mkdir -p ~/.glide
    glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto
  2. 有可能你的是下面的链接,用到哪个执行哪个就好
    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

相关链接

http://blog.csdn.net/wj199395/article/details/78603642

相关文章

  • 使用 glide install 或 glide up 时报 C

    问题 使用 glide install 或 glide up 时报 Cannot detect VCS 解决 这个...

  • (二十三)Glide图片加载框架面试问题

    一、Glide使用方法 Glide是一款图片加载框架,可以本地或网络加载图片。 使用Glide需在build.gr...

  • Glide图片缓存

    Glide工程依赖 Glide使用需要Support Library v4依赖支持 Glide基本使用 Glide...

  • Glide(图片加载)

    Glide Glide使用文档 Glide 系列教程 玩转Glide的Target对象 Glide-内存缓存与磁盘...

  • Glide

    Glide常用: ////原生加载,图片过大,OOM异常 使用Glide加载 Glide 1.简介 Glide,一...

  • Glide探究一

    Glide基本使用: 添加依赖:compile 'com.github.bumptech.glide:glide:...

  • Glide 老版本使用

    compile 'com.github.bumptech.glide:glide:3.6.1'1.使用Glide结...

  • Banner

    compile 'com.github.bumptech.glide:glide:3.7.0' compile'c...

  • Banner

    compile 'com.github.bumptech.glide:glide:3.7.0' compile'c...

  • Glide

    Glide常用: //原生加载,图片过大,OOM异常 使用Glide加载 Glide 1.简介 Glide,一个被...

网友评论

    本文标题:使用 glide install 或 glide up 时报 C

    本文链接:https://www.haomeiwen.com/subject/rhsrfftx.html