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 3
please surpport ignore someOne fuction's igored error hot 1
Setting GO111MODULE=on for golangci.com hot 1
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 hot 1
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 1
Install golangci-lint locally using Windows hot 1
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 1
Golangci-lint Incompatibility with newer versions of Go? hot 1
panic on bodyclose hot 1
concurrent map access on 1.17.1 hot 1
[Feature] TODO/FIXME linter hot 1
Failed to build golangci-lint v1.17.1 when enable GO111MODULE hot 1
Build errors using Go 1.13 hot 1
BUG: failed run hot 1
confusing error message "File is not goimports-ed (goimports)" hot 1
Github User Rank List