-
Notifications
You must be signed in to change notification settings - Fork 18k
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: -mod flag doesn't work with module-mode go get #44760
Comments
CC @bcmills, @jayconrod, @matloob. |
The purpose of I intentionally removed the |
So, probably the thing to fix here is to note the different behavior for |
So, should I send a CL for this? |
Sure! |
I have happened to meet the same issue. |
Really sorry. Totally forgot about this. I'll send a CL ASAP. |
Change https://go.dev/cl/475715 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Inside a module,
go get
didn't accept themod
flag which is against what's mentioned in https://golang.org/ref/mod#build-commandsSo, I was just playing with go commands based on what's written in the doc and I noticed that
-mod
works will all module commands except forgo get
.What did you expect to see?
As per documentation,
-mod
must work withgo get
just like it works forgo {build,fix,generate,install,list,run,test,vet}
What did you see instead?
The text was updated successfully, but these errors were encountered: