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

Golang Proxy Cannot Retrieve golangci-lint #34113

Closed
jaloren opened this issue Sep 5, 2019 · 3 comments
Closed

Golang Proxy Cannot Retrieve golangci-lint #34113

jaloren opened this issue Sep 5, 2019 · 3 comments

Comments

@jaloren
Copy link

jaloren commented Sep 5, 2019

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

go version go1.13 darwin/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="/Volumes/Repositories/go/bin"
GOCACHE="/Users/jlorenzini/Library/Caches/go-build"
GOENV="/Users/jlorenzini/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Volumes/Repositories/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jlorenzini/repos/dep/operator/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8w/7ndx_j6s36x9hm9dns67j21s3hynqn/T/go-build716492838=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Within the directory of a golang module, I ran the following command:

 go get github.com/golangci/[email protected]

What did you expect to see?

That go get successfully downloaded golangci-lint and updated my go.mod with the appropriate requirements.

What did you see instead?

go: finding github.com v1.17.1
go: finding github.com/golangci v1.17.1
verifying github.com/go-critic/[email protected]/go.mod: github.com/go-critic/[email protected]/go.mod: reading https://sum.golang.org/lookup/github.com/go-critic/[email protected]: 410 Gone

If I set the following environment variables, then the go get is successful.

export GOPROXY=direct GOSUMDB=off
@aofei
Copy link
Contributor

aofei commented Sep 5, 2019

https://sum.golang.org/lookup/github.com/go-critic/[email protected]:

not found: github.com/go-critic/[email protected]: invalid pseudo-version: does not match version-control timestamp (2019-05-26T07:48:19Z)

This seems to be a tampered module version.

@aofei
Copy link
Contributor

aofei commented Sep 5, 2019

The correct pseudo-version of go-critic/go-critic@1df3008 should be: v0.0.0-20190526074819-1df300866540.

You can submit an issue to golangci/golangci-lint to have its author correct its go.mod file (and go.sum of course).

@hyangah
Copy link
Contributor

hyangah commented Sep 5, 2019

Thanks @aofei

This is a duplicate of golangci/golangci-lint#652

@hyangah hyangah closed this as completed Sep 5, 2019
@golang golang locked and limited conversation to collaborators Sep 4, 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

4 participants