cmd/go: reject vN.*.*+incompatible as a version if vN/go.mod exists #36438
Comments
I've marked this issue as |
So with one of these versions, users would not be able to import anything in I'd lean toward fixing this, but we should understand how many module versions this will break. Hopefully a very small number. |
Correct, a user could not import packages from The
|
This issue is currently in the 1.15 milestone. Should we roll it forward? |
Done. |
(From a golang-nuts thread.)
What version of Go are you using (
go version
)?What did you do?
Run
go get
in module mode, requesting an incompatible major version of a module that has ago.mod
file corresponding to that major version using the “major subdirectory” layout, but lacks ago.mod
file altogether at the repo root.What did you expect to see?
An error message indicating that
v2.0.3+incompatible
is not valid forgithub.com/nicksnyder/go-i18n
because the repository contains av2/go.mod
.(See #32695 and #34165.)
What did you see instead?
CC @matloob @jayconrod @thepudds @heschik @hyangah @katiehockman
The text was updated successfully, but these errors were encountered: