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 should inform about new major versions #65630

Closed
firefart opened this issue Feb 9, 2024 · 2 comments
Closed

proposal: go get -u should inform about new major versions #65630

firefart opened this issue Feb 9, 2024 · 2 comments
Labels
Milestone

Comments

@firefart
Copy link

firefart commented Feb 9, 2024

Proposal Details

It would be great if the go get -u command could print an info message if there is a new major version of a package available.
Currently you need to check the packages one by one to see if there is a new v3 version while you are still running on v2 for example.

Example:
This example is even more complex because the repo was renamed between v8 and v9 (github.com/go-redis/redis/v8 to github.com/redis/go-redis/v9):
Suppose you are running a project that referencs redis v8. It would be really helpful to print a message saying "Hey, there is already a v9 available, you might want to consider upgrading". This can also prevent bugs like autoimport importing redis v1 where you really wanted the latest version. In this case the message could also hint at some errors.

@gopherbot gopherbot added this to the Proposal milestone Feb 9, 2024
@fzipp
Copy link
Contributor

fzipp commented Feb 9, 2024

Duplicate of #40323

@firefart
Copy link
Author

firefart commented Feb 9, 2024

sorry didnt find that one

@firefart firefart closed this as completed Feb 9, 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

3 participants