cmd/go: go mod should not auto update dependencies in version 0.x.y #38668
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Our app depends on a library A ver 0.6.9, and someday we import another lib, whose subpackage has 0.8.0 version info for this library A, but we don't directly depends on this subpackage. Go mod still "helps" us to update A to 0.8.0 and build fails.
According to semver spec:
Auto-update library 0.x.y will cause the user's build to fail. go mod should consider not update the lib's version in such situation
What did you expect to see?
go mod didn't update the lib's versoin.
What did you see instead?
the lib A ver 0.6.9 was auto-updated to 0.8.0
The text was updated successfully, but these errors were encountered: