profile
viewpoint

Ask questionsCannot `go get` due to invalid pseudo-version

I tried to run go get to grab the latest master but running into some issues

$ go get github.com/golangci/golangci-lint/cmd/golangci-lint@master
go: finding github.com/golangci/golangci-lint master
go: finding github.com master
go: finding github.com/golangci/golangci-lint/cmd master
go: finding github.com/golangci master
go: finding github.com/golangci/golangci-lint/cmd/golangci-lint master
go get: github.com/golangci/golangci-lint@v1.19.0 requires
        github.com/goreleaser/goreleaser@v0.118.0 requires
        code.gitea.io/gitea@v1.10.0-dev.0.20190711052757-a0820e09fbf7 requires
        github.com/go-macaron/cors@v0.0.0-20190309005821-6fd6a9bfe14e9: invalid pseudo-version: revision is longer than canonical (6fd6a9bfe14e)

What is really weird is if I clone the repo and do go install ./cmd/golangci-lint it works perfectly fine.

Maybe I am just doing something wrong, since it looks like there is a replace in go.mod to fix this, but somehow not getting applied on go get

$ go version
go version go1.13 linux/amd64
golangci/golangci-lint

Answer questions pierrre

Same issue when I try to install from vscode:

Installing 1 tool at /home/pierre/go/bin
  golangci-lint

Installing github.com/golangci/golangci-lint/cmd/golangci-lint FAILED

1 tools failed to install.

golangci-lint:
Error: Command failed: /home/pierre/.gimme/versions/go1.13.src/bin/go get -v github.com/golangci/golangci-lint/cmd/golangci-lint
go get: github.com/golangci/golangci-lint@v1.19.0 requires
	github.com/goreleaser/goreleaser@v0.118.0 requires
	code.gitea.io/gitea@v1.10.0-dev.0.20190711052757-a0820e09fbf7 requires
	github.com/go-macaron/cors@v0.0.0-20190309005821-6fd6a9bfe14e9: invalid pseudo-version: revision is longer than canonical (6fd6a9bfe14e)
go get: github.com/golangci/golangci-lint@v1.19.0 requires
	github.com/goreleaser/goreleaser@v0.118.0 requires
	code.gitea.io/gitea@v1.10.0-dev.0.20190711052757-a0820e09fbf7 requires
	github.com/go-macaron/cors@v0.0.0-20190309005821-6fd6a9bfe14e9: invalid pseudo-version: revision is longer than canonical (6fd6a9bfe14e)
useful!

Related questions

confusing error message "File is not goimports-ed (goimports)" hot 203
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 hot 50
Build errors using Go 1.13 hot 49
BUG: failed run hot 47
Setting GO111MODULE=on for golangci.com hot 31
ERRO Running error: context loading failed: failed to load program with go/packages hot 27
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 22
Golangci-lint Incompatibility with newer versions of Go? hot 19
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 hot 16
please surpport ignore someOne fuction's igored error hot 15
govet. WARN [runner] Can't process result by autogenerated_exclude processor: can't filter issue hot 14
VS Code can't find .golangci.yml hot 14
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 13
Travis-CI: Context loading failed: could not determine GOARCH and Go compiler hot 13
panic on bodyclose hot 12
Github User Rank List