cmd/go: get does not understand go-import meta tag with mod method by default #40883
Labels
FrozenDueToAge
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
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run
go get go.felesatra.moe/animanager
outside of module dir.What did you expect to see?
Success
What did you see instead?
Note that
go.felesatra.moe/animanager
does include a go-import meta tag, but using mod instead of a vcs value.It's arguable whether this is a bug. Strictly speaking,
go get
is behaving as documented:So running
go get
outside of a module dir has module support disabled, so it does not support mod meta tags.However, practically speaking it's not desirable that you can't
go get
a program if it uses a mod meta tag, since end users don't care about that (it works if you explicitly setGO111MODULE=on
, naturally).The text was updated successfully, but these errors were encountered: