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

proposal: go get -u to notify about new major versions #66286

Closed
lzap opened this issue Mar 13, 2024 · 1 comment
Closed

proposal: go get -u to notify about new major versions #66286

lzap opened this issue Mar 13, 2024 · 1 comment
Labels
Milestone

Comments

@lzap
Copy link

lzap commented Mar 13, 2024

Proposal Details

The standard Go tooling currently does not provide any indication that there was a major version release of a module depdency. The generic workflow that is spread around the internet is to simply do go get -u an you are good. My concern is that many projects can easily get stuck on older versions of modules forever without people even noticing that.

We briefly discussed this on Slack where I was asking about a tool that would show major version releases for a project and immediately a community user replied with "just use go get -u" which is obviously not correct. This confirms the concern that we need go get -u to inform users about this. I believe this should be the default behavior with command line argument to turn this off. By the way such projects do exist, however, it did not work for me (an unknown error) and it does not solve the visibility concern.

I am not proposing to write a tool which would help with upgrading, that would be nice but not on the table right now. All I am proposing is the following workflow:

$ go get -u ./...
go: downloading github.com/module/xyz v1.0.1
note: new github.com/module/v3/abc major version available

This will get people curious enough to investigate what is going on and what needs to be done in order to upgrade. Thanks for taking a look into this.

@lzap lzap added the Proposal label Mar 13, 2024
@gopherbot gopherbot added this to the Proposal milestone Mar 13, 2024
@lzap
Copy link
Author

lzap commented Mar 13, 2024

On dupe of #40323 sorry did not find it.

@lzap lzap closed this as completed Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants