-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consider retract
for v2 lineage
#585
Comments
May solve some of this issues as mentioned on #440 ? |
Interesting, as v2.0.0 was never published via gomod it's still flagged as incompatible so shouldn't be considered. If we did a v2.0.1 I would be concerned it would make the problem worse. Is this something you have experience with @nelz9999 ? |
Sorry to say that I don't have direct experience with this. 😢 But I know that this project fields requests in this realm fairly frequently, so I thought I'd mention the new directive in case it might help. |
Thanks I’ll ask on go nuts to see if this would solve the issue |
Retract unpublished versions from go tooling. Fixes #585
@stevenh It might be worth a shot... It seems like it could be a low-risk experiment. But my reading of the documentation has me thinking that you have to roll forward to retract behind you. |
|
So sounds like I need to tag v2.0.1 which can be incompatible. |
Retract unpublished versions from go tooling. Bump go version to 1.16 required for retract statement. Fixes #585
Feedback on gonuts indicated that was only needed for compatible versions as they are contained in different paths. Given that I just tried with v1.8.7 and it seems to have worked, with the output from
So fingers crossed this works for all, thanks for raising the issue which lead to this :) |
As of Go 1.16, there is now a
retract
directive in the module system.From my quick-ish reading of things (https://go.dev/ref/mod#go-mod-file-retract), it seems that maybe the way to make end-users' lives a little easier is to publish a v2.0.1 with something like the following in the
go.mod
file:The text was updated successfully, but these errors were encountered: