I have a project that I am trying to setup on IntelliJ. IntelliJ tries to do a go list
and it fails with the error
go: github.com/veraison/[email protected]: invalid version: unknown revision v1.2.0
It seems the author of go-cose has deprecated v1.2.0 and v1.2.1 in pkg.go.dev
I don’t have a direct dependency on go-cose.
GOROOT=/usr/local/opt/go/libexec #gosetup
GOPATH=/Users/senthilx/go #gosetup
/usr/local/opt/go/libexec/bin/go list -modfile=/Users/senthilx/git/vpc-cni2/go.mod -m -json -mod=mod all #gosetup
go: github.com/veraison/[email protected]: invalid version: unknown revision v1.2.0
I have tried to solve this problem by editing my go.mod by adding a replace directive, but it still did not help
replace github.com/veraison/go-case v1.2.0 => github.com/veraison/go-cose v1.1.0
Any suggestions on how to fix this?