imports golang.org/x/tools/go/vcs: unrecognized import path "golang.org/x/tools/

来源:互联网 发布:mac查看cocoapods版本 编辑:程序博客网 时间:2024/05/22 11:22
错误信息:

imports golang.org/x/tools/go/vcs: unrecognized import path "golang.org/x/tools/go/vcs"


原因:
   国内无法访问到golang.org/x/tools/go/vcs这个地址


解决办法:
    我使用翻墙工具在本机建立了代理,在centos端修改代理配置,执行如下命令   
export http_proxy=http://172.17.42.1:8118 
export https_proxy=$http_proxy 
export ftp_proxy=$http_proxy 
export rsync_proxy=$http_proxy 
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" 
source /etc/profile

    网上还有其他解决办法,但是我试验失败了:
    


    参考地址:https://github.com/tools/godep/issues/154
1 0
原创粉丝点击