-
Notifications
You must be signed in to change notification settings - Fork 46
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
Major version updates #2
Comments
See also golang/go#38762 |
That go issue is superseded by golang/go#40357 (deprecated notification) and golang/go#40323 (notify about newer major versions) |
Thanks for the follow-up ! Major modules version in Go is a hot topic right now, with articles like Semantic Import Versioning is unsound and Go Modules have a v2+ Problem. |
You may be interested in this experimental tool that discovers major updates BTW: https://github.com/icholy/gomajor |
BTW, I use go-mod-upgrade a lot, so thanks very much for it! |
Thanks for the link, @StevenACoffman ! Finding the latest version of a module is still quite hacky for now, as it requires parsing the html from the https://pkg.go.dev website. I hope there will be an "official" way (via go list for example) in the future to retrieve the latest major version of a module, so that we could use it in go-mod-upgrade. |
gomajor has been updated ( in icholy/gomajor#4) to find newer versions using the module proxy. Still not "official" but better than scraping the pkg.go.dev website. |
Figure out a way to automatically find major updates for a given module, as major versions use a different module path, as explained in Go Modules: v2 and Beyond.
See also marwan-at-work/mod which allow to upgrade major versions of known modules (meaning, you know which module has a new major version, whereas in go-mod-upgrade, the tool should discover it for you).
The text was updated successfully, but these errors were encountered: