-
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: go get can't fetch tools with mod=vendor #32502
Comments
Edit: Just realized I misunderstood what you were trying to do |
This is more of an issue with
|
#30240 may make the #30515 tracks some sort of command (probably a flag for Note that the argument to On the other hand, |
Change https://golang.org/cl/198438 mentions this issue: |
I ran into this problem recently where a CI build was installing github.com/golang/gomock/mockgen so that we could run go generate to confirm any generated files were in sync. However as a newer version of gomock was released, this started updating go.mod with the new version rather than sticking with what was pinned in our go.mod. Seems the solution was to switch to |
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?
I tried to install
goimports
from my home directory.What did you expect to see?
I expected the tool to work like it has for years. I expected
go get
to download and installgoimports
.What did you see instead?
I got an error about
-mod=vendor
being on.In my environment, we use vendoring. Because Go is moving away from dep and moving towards modules, we've started doing the work to migrate to modules.
A temporary work around for this bug is to do this.
The text was updated successfully, but these errors were encountered: