-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/pkgsite: package removal request for github.com/tidwall/geodesic #48562
Comments
I get v1.52.2
both when I use go1.16 and go1.18-d0dd26a88c |
From https://golang.org/ref/mod#go-mod-file-retract this is probably why the retraction is not working; the retract statement is set at a lower version |
Interesting, it seems that the retract directive that I added did work correctly for the For example, when I do a
But, the pkg.go.dev website does not point to https://pkg.go.dev/github.com/tidwall/geodesic Is there a way I can purge the package entirely from |
I confused. I wonder whey my |
Do you have GOPROXY=direct or GOPRIVATE set? |
Thanks for all the feedback. Since the Go documentation clearly states that you cannot retract the latest version, it seems that there is nothing I can do at this point but to use a higher version number. I'm closing the issue for now. |
You can publish a higher version and at the same time retract it, ie create v1.52.3 and in it retract v1.52.1 - v1.52.3 |
@seankhliao Thanks for the tip. I just tried that. I added this to go.mod
and create two new versions, v0.3.1 and v1.52.3 that point to the same commit. https://pkg.go.dev/github.com/tidwall/geodesic still shows https://pkg.go.dev/github.com/tidwall/geodesic@v1.52.3 show Interestingly, searching for the package https://pkg.go.dev/search?q=geodesic&m=package displays the correct version. Also
So it kinda works, kinda doesn't. 🤷♂️ |
It seems to work now. go list -m -u github.com/tidwall/geodesic and https://pkg.go.dev/github.com/tidwall/geodesic point to the same version Magic. I'm a happy boy. :) |
What is the path of the package that you would like to have removed?
https://pkg.go.dev/github.com/tidwall/geodesic
Specifically, I only want v1.52.1 and v1.52.2 removed because these are no longer valid tags.
https://pkg.go.dev/github.com/tidwall/geodesic@v1.52.1
https://pkg.go.dev/github.com/tidwall/geodesic@v1.52.2
I want to keep the pre-v1 versions. Right now v0.3.0 should be the latest.
Are you the owner of this package?
Yes
What is the reason that you could not retract this package instead?
I added these lines to the go.mod file.
And
go get github.com/tidwall/geodesic@latest
correctly shows:But https://pkg.go.dev/github.com/tidwall/geodesic still has v1.52.2 as the latest/default version.
The text was updated successfully, but these errors were encountered: