-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: get does not understand go-import meta tag with mod method by default #40883
Comments
Sorry, this is unlikely to be implemented. Since In general, we aren't actively developing |
There is an alternative solution, which is to modify |
We'd like to change the default of Incidentally, if you're mainly using |
If I understand this issue correctly (also based on reading darkfeline/animanager-go#1), this issue doesn't exist in module mode, only in GOPATH mode (including when it's chosen through GO111MODULE=auto). As a consequence, this will be resolved indirectly via #41330. |
Right, let's close this then.
|
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: