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
cmd/go: 'go get' of module in GOPATH mode fails due to semantic version import #35630
What version of Go are you using (
The issue here seems to be that
Minimal module compatibility means that in GOPATH mode (
So if the file
To be compatible with GOPATH mode,
As a local workaround, you can either check out a specific tag of
Closing because this seems to be working as designed, and we probably won't change semantics of minimal module compatibility at this point.
Got it, all of this makes sense -- in trying to figure out what was going on, the piece I was missing/didn't properly consider was the "go.mod" file not being on the main branch. Agree that, given all of this, this is working as intended. Thanks for the explanation!