-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
GoCommandcmd/gocmd/goNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.modules
Milestone
Description
(From a golang-nuts thread.)
What version of Go are you using (go version
)?
~$ go version go version devel +7d98da8d31 Tue Jan 7 19:53:19 2020 +0000 linux/amd64
What did you do?
Run go get
in module mode, requesting an incompatible major version of a module that has a go.mod
file corresponding to that major version using the “major subdirectory” layout, but lacks a go.mod
file altogether at the repo root.
~$ go clean -modcache
~$ GOPROXY=direct GO111MODULE=on go get -d github.com/nicksnyder/[email protected]
go: downloading github.com/nicksnyder/go-i18n v2.0.3+incompatible
go: github.com/nicksnyder/go-i18n v2.0.3 => v2.0.3+incompatible
What did you expect to see?
An error message indicating that v2.0.3+incompatible
is not valid for github.com/nicksnyder/go-i18n
because the repository contains a v2/go.mod
.
What did you see instead?
~$ GOPROXY=direct GO111MODULE=on go get -d github.com/nicksnyder/[email protected]
go: downloading github.com/nicksnyder/go-i18n v2.0.3+incompatible
go: github.com/nicksnyder/go-i18n v2.0.3 => v2.0.3+incompatible
CC @matloob @jayconrod @thepudds @heschik @hyangah @katiehockman
Metadata
Metadata
Assignees
Labels
GoCommandcmd/gocmd/goNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.modules