go-get cannot download from github

260 views Asked by At

I installed a go and I think it is correct.

$go version
go version go1.15.2 darwin/amd64

$GO111MODULE=on go get -d github.com/[email protected]

when I downloaded a gihub repo using go, it showed error:

go: downloading github.com/XXX/XXX v0.XXX
go get github.com/XXX/[email protected]: github.com/XXX/[email protected]: verifying module: github.com/XXX/[email protected]: reading https://sum.golang.org/lookup/github.com/XXX/[email protected]: 410 Gone
server response: not found: github.com/XXX/[email protected]: invalid version: unknown revision v0.XXX

I do not know much about go language. why the go get does not work? is it because I did not install go correctly or go version is too new?

0

There are 0 answers