近日在学习go中用glide拉取golang.org/x/sys报错误
根据网上设置mirror也是不行的
最后看到一篇文章
最好的方式就是 设置代理!
export http_proxy=‘http://localhost:1088’
export https_proxy=‘http://localhost:1088’
然后在执行 就可以了
取消使用
unset http_proxy
unset https_proxy
如果一直生效
vim ~/.bash_profile
export http_proxy=‘http://localhost:1088’
export https_proxy=‘http://localhost:1088’
然后就可以了!