no matching versions for query "latest"

2,937 views
Skip to first unread message

Tom Limoncelli

unread,
Apr 12, 2021, 8:51:36 AM4/12/21
to golang-nuts
My go.* files have gotten into a situation where `go list -mod=mod -u
-m -json all` gives an error:

$ go list -mod=mod -u -m -json all
go list -m: loading module retractions for
github.com/juju/ut...@v0.0.0-20200116185830-d40c2fe10647: no matching
versions for query "latest"

If I don't run `go mod tidy` then my current go.* files work just fine.

Here's a gist the reproduces the problem:
https://gist.github.com/tlimoncelli/1d13250263cba3e330b3154f2b6f94b9

I've read the blog posts and docs about Go Modules but this one has me baffled.

The workaround is to never run `go mod tidy` but that's not a great solution.

Any suggestions of how to fix this or even how to go about researching it?

Thanks!
Tom

--
Blog: https://www.yesthatblog.com/
Reply all
Reply to author
Forward
0 new messages