Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/go: cannot go get when all versions are retracted #42648
What version of Go are you using (
This is because proxy.golang.org isn't yet using go 1.16 that understands version retraction. According to #24031 (comment),
And according to golang.org/ref/mod
As go1.16 rolls out, proxy maintainers need to make sure either to implement the end point correctly, or let the go command fallback to direct (if users chose to do so) by responding with 404/410.
It would be nice if the go command's error message gets improved though.
So it looks like the proxy returns the highest release version from the
The first error message is a bit obscure, but I think it's reasonable. The
The second error message is less helpful. This one should explicitly mention that all versions were retracted.
I think a couple changes to the proxy are needed though:
@hyangah Does this sound reasonable? Should I open a separate issue for the proxy changes?