I cannot get rid of false and misleading "go to latest" button on pkg.go.dev

89 views
Skip to first unread message

Sean Foley

unread,
May 28, 2022, 8:26:45 PM5/28/22
to golang-nuts
Hello all,

If you go to my module https://pkg.go.dev/github.com/seancfoley/ipaddress-go then everything looks fine.

when you go to a subfolder https://pkg.go.dev/github.com/seancfoley/ipaddress-go/ipaddr it things that a pseudo-version is the latest, not the correct version 1.2.0.  When you select the correct version (https://pkg.go.dev/github.com/seancfoley/ipaddr...@v1.2.0/ipaddr) there is a bright-red "go to latest" button to take you to a pseudo-version.

How did this happen you ask?

The go modules documentation was not clear that you cannot use normal versioning numbering (eg v1.0.0) if you do not put the go.mod file at the root if the repository. So initially I had the go.mod in the package ipaddr. After a lot of trial and error I realized that to use normal semantic versioning I had to move the go.mod, so the go.mod is now placed it at the root of the repo.  That left me with this problem.

I have tried everything but I cannot make that red button go away.  I filed a bug with pkg.go.dev and it was closed with no viable solution proposed, just a vague declaration to "retract" the pseudo-version and no detailed explanation how to retract it or where to retract it from.  I have tried all sorts of ways of retracting and nothing works.  I cannot retract using the new go mod, that does nothing.  I cannot retract using the old go mod in the sub-folder because any retraction creates a new pseudo-version.  Creating proper versions never gets rid of the pseudo-version.

Any ideas?

Reply all
Reply to author
Forward
0 new messages