Skip to content
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

Open
oligot opened this issue Feb 3, 2020 · 7 comments
Open

Major version updates #2

oligot opened this issue Feb 3, 2020 · 7 comments

Comments

@oligot
Copy link
Owner

oligot commented Feb 3, 2020

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).

@oligot
Copy link
Owner Author

oligot commented May 4, 2020

See also golang/go#38762

@StevenACoffman
Copy link

StevenACoffman commented Sep 15, 2020

That go issue is superseded by golang/go#40357 (deprecated notification) and golang/go#40323 (notify about newer major versions)

@oligot
Copy link
Owner Author

oligot commented Sep 16, 2020

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.

@StevenACoffman
Copy link

You may be interested in this experimental tool that discovers major updates BTW: https://github.com/icholy/gomajor

@StevenACoffman
Copy link

BTW, I use go-mod-upgrade a lot, so thanks very much for it!

@oligot
Copy link
Owner Author

oligot commented Sep 21, 2020

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.

@StevenACoffman
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants