Reputation: 2263
With go get -u
it's possible to update all packages in a Go application that uses go.mod. However, there's a convention in Go that the package name gets updated for a major version when there are breaking changes.
For example "github.com/ahmetb/go-linq" changes in "github.com/ahmetb/go-linq/v2" after an update with breaking changes.
How can I detect if any of the packages I use updated their major version?
Upvotes: 5
Views: 1542
Reputation: 1528
This has an open proposal that is on hold.
From that thread you may want to use gomajor and see if it works for you.
Upvotes: 7