Think before you speak, read before you think.

go get 使用代理

使用 go get , govendor fetch 遇到下面问题

fatal: unable to access 'https://go.googlesource.com/net/': Server aborted the SSL handshake

解决办法

http_proxy=socks5://127.0.0.1:1080 govendor fetch +outside

或者

$ git config [--global] http.proxy http://proxy.example.com:port
例如: git config --global http.proxy socks5://127.0.0.1:1080

参考
https://github.com/golang/go/wiki/GoGetProxyConfig


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *