win10下安装govendor报错
go get -u -v github.com/kardianos/govendor
错误如下:
github.com/kardianos/govendor (download)
# cd .; git clone -- https://github.com/kardianos/govendor D:\vali\GoProjects\src\github.com\kardianos\govendor
Cloning into 'D:\vali\GoProjects\src\github.com\kardianos\govendor'...
fatal: unable to access 'https://github.com/kardianos/govendor/': Failed to connect to github.com port 443: Timed out
package github.com/kardianos/govendor: exit status 128
解决:
执行git命令脚本:修改设置,解除ssl验证
git config --global http.sslVerify "false"
再重试即可。
其他操作:
配置代理:
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy