Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: Go get ignore global proxy settings #10915

Closed
denghongcai opened this issue May 20, 2015 · 2 comments
Closed

cmd/go: Go get ignore global proxy settings #10915

denghongcai opened this issue May 20, 2015 · 2 comments

Comments

@denghongcai
Copy link

Go version: go1.4.1 linux/amd64
OS: Ubuntu 14.04.2

Due to some reason, I have to set proxy to use go get. If target repo is in github or other git repos, I just set HTTP_PROXY, HTTPS_PROXY and GIT_PROXY to make it work great. But if target repo is in golang.org/x, seems that it must fetch meta data first and use a different method to download code. For example, I always failed at:

Fetching https://golang.org/x/crypto/openpgp?go-get=1
https fetch failed.
Fetching http://golang.org/x/crypto/openpgp?go-get=1
import "golang.org/x/crypto/openpgp": http/https fetch: Get http://golang.org/x/crypto/openpgp?go-get=1: dial tcp 74.125.204.141:80: i/o timeout    // The error msg shows that it uses golang builtin net package
package golang.org/x/crypto/openpgp: unrecognized import path "golang.org/x/crypto/openpgp"

Is there a way i missed to set proxy for it or it just a problem? Thanks

@mikioh mikioh changed the title Go get ignore global proxy settings cmd/go: Go get ignore global proxy settings May 20, 2015
@minux
Copy link
Member

minux commented May 20, 2015 via email

@denghongcai
Copy link
Author

Yes, it's my mistake...works great now

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants