cmd/vet: does not support -getmode flag #26586
Closed
Labels
Milestone
Comments
|
In general all the tools that load packages do have the -getmode flag - it's a build flag documented in 'go help build', and essentially all commands that take lists of packages as arguments also take build flags (the canonical one being -tags). The difference here is that vet has its own special flag parser and I didn't realize it had its own list of what the build flags are. We just need to add the flag there. Possibly test too. |
Change https://golang.org/cl/126696 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go1.11beta2
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
go vet
in a directory with valid go.modgo vet -getmode=vendor
in the same directoryWhat did you expect to see?
Both go vet invocations succeed
What did you see instead?
go vet -getmode=vendor
prints following error message:The text was updated successfully, but these errors were encountered: