]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow full flag processing in go vet
authorRob Pike <r@golang.org>
Sun, 9 Apr 2017 03:31:09 +0000 (20:31 -0700)
committerRob Pike <r@golang.org>
Mon, 10 Apr 2017 15:10:30 +0000 (15:10 +0000)
commit62aeb77764dcb5487e6557d207aa19879745e03e
tree430d5caf16f422654c365eeaae1bba4174896013
parent9ffd9339da503b50571ec6806e5d6d2cf5d5912a
cmd/go: allow full flag processing in go vet

This allows the go tool to run "go vet" with both the build flags
that make sense, such as -x and -tags, and vet with all its flags.

To do this, create a new package cmd/go/internal/cmdflag to
hold functionality common to flag handling for test and vet.

Fixes #19350

RELNOTES=yes

Change-Id: Ia1ae213bd3f6cab1c5e492501c8d43ce61a7ee89
Reviewed-on: https://go-review.googlesource.com/40112
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/dist/deps.go
src/cmd/go/alldocs.go
src/cmd/go/go_test.go
src/cmd/go/internal/cmdflag/flag.go [new file with mode: 0644]
src/cmd/go/internal/test/testflag.go
src/cmd/go/internal/vet/vet.go
src/cmd/go/internal/vet/vetflag.go [new file with mode: 0644]
src/cmd/vet/main.go