-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: unable to get golang.org/x/...
packages
#25495
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
Comments
This seems to be an issue with your system. It is more apparent because you can't even clone the repositories manually. Please upgrade your libcurl version and try again. Also ensure that you don't have any proxy servers incorrectly configured. |
golang.org/x/...
packagesgolang.org/x/...
packages
@agnivade have the latest curl and git versions, no proxies. I can clone git repositories from github, but not from go.googlesource.com: $ curl --version
curl 7.60.0 (x86_64-pc-linux-gnu) libcurl/7.60.0 OpenSSL/1.0.2o
Release-Date: 2018-05-16
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets HTTPS-proxy $ git --version
git version 2.17.0
Other people in my company are getting the same issue since Sunday |
Does the issue only occur inside your company? You may need to talk to your network administrators and check that they are not filtering your traffic. |
@davecheney I am working remotely, we are in different countries/buildings (no vpn, no proxy). I am not filtering my traffic :) |
Output of plain curl $ curl https://golang.org/x/crypto
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="golang.org/x/crypto git https://go.googlesource.com/crypto">
<meta name="go-source" content="golang.org/x/crypto https://github.com/golang/crypto/ https://github.com/golang/crypto/tree/master{/dir} https://github.com/golang/crypto/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/golang.org/x/crypto">
</head>
<body>
Nothing to see here; <a href="https://godoc.org/golang.org/x/crypto">move along</a>.
</body>
</html> |
@GonchuB what was the fix for you? |
Some keg (using linuxbrew) installed git and curl as a dependency, so those binaries were being used instead of the system ones. Apparently they were not working correctly (it is odd, because they worked correctly with github repos and go packages) but not with go.googlesource ones. Uninstalled git and curl kegs and issue was solved |
I am glad to hear that you found the solution! |
Wow, weird indeed. |
@GonchuB Thank you for saving me hours of banging my head against the wall! Just had (and resolved) the same issue. |
I am unable to get packages hosted in go.googlesource.com, I can't even clone the repositories by hand, getting the same error.
What version of Go are you using (
go version
)?go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/home/sanz/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/sanz/go"
GORACE=""
GOROOT="/home/linuxbrew/.linuxbrew/Cellar/go/1.10.2/libexec"
GOTMPDIR=""
GOTOOLDIR="/home/linuxbrew/.linuxbrew/Cellar/go/1.10.2/libexec/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc-5"
CXX="g++-5"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build001979355=/tmp/go-build -gno-record-gcc-switches"
What did you do?
What did you expect to see?
I expected to get crypto installed
What did you see instead?
The text was updated successfully, but these errors were encountered: