cmd/go: go Mod should use go dep SemVer behavior for < v1.0.0 #37117
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?go version go1.13.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GO111MODULE="on"
GOARCH="amd64"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPRIVATE=""
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
What did you do?
I've a project with a dependency on lib A version v0.3.2, I ran:
go get -u ./...
lib A available versions are:
v0.3.2
andv0.4.0
What did you expect to see?
Go.sum/go.mod should not update to
v0.4.0
since it's a break change based on dep convention described here:https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
What did you see instead?
It pulled
v0.4.0
instead which lead to compilation errorsThe text was updated successfully, but these errors were encountered: