Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: proposal: warn if user code imports different versions of a library #24474
User needs to update import paths if
The mistake can be detected via
This is an expected state, not something to warn about. In a large program it's not realistic to think that all uses of foo will update to the same version at the same time. The author of foo has to think about and plan for the fact that large builds will use both foo/v1 and foo/v2 and make them coexist nicely.
See the part about "gradual code upgrades" in blog.golang.org/versioning-proposal.