Skip to content

proxy.golang.org: 400 Bad Request #32765

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

Closed
gobins opened this issue Jun 25, 2019 · 5 comments
Closed

proxy.golang.org: 400 Bad Request #32765

gobins opened this issue Jun 25, 2019 · 5 comments

Comments

@gobins
Copy link

gobins commented Jun 25, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12 linux/amd64

Does this issue reproduce with the latest release?

Have not checked.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/gsougrak/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/gsougrak/go"
GOPROXY="https://proxy.golang.org"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/gsougrak/git/capacitor/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build359367473=/tmp/go-build -gno-record-gcc-switches"

What did you do?

go clean --modcache
go build

What did you expect to see?

Clean build with no errors

What did you see instead?

cannot load golang.org/x/sys/unix: unexpected status (https://proxy.golang.org/golang.org/x/sys/@v/v0.0.0-20190624145334-c5567b49c5d0.zip): 400 Bad Request

The build works if I unset the GOPROXY.

@heschi
Copy link
Contributor

heschi commented Jun 25, 2019

Where did that pseudoversion come from? The correct pseudoversion for that commit seems to be v0.0.0-20190624142023-c5567b49c5d0, with a slightly different timestamp. #32662 (comment) is the reason it's failing.

@gobins
Copy link
Author

gobins commented Jun 25, 2019

The issue got fixed after I updated the package. I don't touch the mod file directly, must be one the steps in the build that updated the version. I run goimports and go test as part of my build.

@gobins gobins closed this as completed Jun 25, 2019
@heschi
Copy link
Contributor

heschi commented Jun 25, 2019

I'm glad it's working for you, but I'd really like to know where the bad version came from, especially since it'll break in 1.13. Can you tell me anything about what might have caused it?

@gobins
Copy link
Author

gobins commented Jun 26, 2019

I spent some time trying to reproduce the issue but have not been successful.
The go version I started out was 1.12.

@heschi
Copy link
Contributor

heschi commented Jun 26, 2019

Very strange. Well, thanks for trying.

@golang golang locked and limited conversation to collaborators Jun 25, 2020
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