Skip to content

proxy.golang.org: "410 Gone" on tag publicly available for 50 days #34402

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
MMulthaupt opened this issue Sep 19, 2019 · 1 comment
Closed

proxy.golang.org: "410 Gone" on tag publicly available for 50 days #34402

MMulthaupt opened this issue Sep 19, 2019 · 1 comment

Comments

@MMulthaupt
Copy link

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

go1.13 linux/amd64

Does this issue reproduce with the latest release?

Yes.

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

go env Output
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/martin/.cache/go-build"
GOENV="/home/martin/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/martin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/martin/gitlab/godown-builder/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-build504237898=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Write a go.mod with one of these entries:
require github.com/shirou/gopsutil v2.19.8+incompatible (Released Sep 1)
require github.com/shirou/gopsutil v2.19.7+incompatible (Released Jul 31)

What did you expect to see?

go: finding github.com/shirou/gopsutil v2.19.8+incompatible

What did you see instead?

verifying github.com/shirou/gopsutil@v2.19.8+incompatible/go.mod: github.com/shirou/gopsutil@v2.19.8+incompatible/go.mod: reading https://sum.golang.org/lookup/github.com/shirou/gopsutil@v2.19.8+incompatible: 410 Gone

Additional Information

v2.19.6 does work, and has no changes to the project's structure (i.e., still has no v2 subdirectory):
require github.com/shirou/gopsutil v2.19.6+incompatible (Released Jun 27)

@heschi
Copy link
Contributor

heschi commented Sep 19, 2019

From https://sum.golang.org/lookup/github.com/shirou/gopsutil@v2.19.8+incompatible: not found: github.com/shirou/gopsutil@v2.19.8+incompatible: invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is required.

This is new validation in 1.13; see "Version validation" in https://golang.org/doc/go1.13 for details. v2.19.6+incompatible is present because it was added before sum.golang.org was upgraded to 1.13.

Closing, since everything here is working correctly. gopsutil will need to add the necessary /v2 suffix to its go.mod and use non-+incompatible versions, or remove its go.mod entirely.

@heschi heschi closed this as completed Sep 19, 2019
jirfag pushed a commit to golangci/golangci-lint that referenced this issue Sep 20, 2019
Note, dependency has to be pinned to a specific release version
commit hashes since it doesn't follow Go module v2+ guidelines.

see:
shirou/gopsutil#663
golang/go#34402
@golang golang locked and limited conversation to collaborators Sep 18, 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