]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document the build flags properly for vet
authorRob Pike <r@golang.org>
Fri, 1 Sep 2017 03:00:51 +0000 (13:00 +1000)
committerRob Pike <r@golang.org>
Fri, 1 Sep 2017 04:51:50 +0000 (04:51 +0000)
The "build flags" mentioned in the documentation are only those
that apply to analyzing packages and executing the tool.

Fixes #21711.

Change-Id: Ie7b2a354f1e30c928b40888c51fc68e599a5444a
Reviewed-on: https://go-review.googlesource.com/60830
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/vet/vet.go

index 5f7de4adc0197be0f7d8a88d75fbf8f1ebe08577..7de7e36e25d2c0f8061f5a75c3e5eafc83273849 100644 (file)
 // The -n flag prints commands that would be executed.
 // The -x flag prints commands as they are executed.
 //
-// For more about build flags, see 'go help build'.
+// The build flags supported by go vet are those that control package resolution
+// and execution, such as -n, -x, -v, -tags, and -toolexec.
+// For more about these flags, see 'go help build'.
 //
 // See also: go fmt, go fix.
 //
index ddacd085b0661c438b7022242a45e4d732b7c67f..79777817b4a64becc0ece0d874d214c84d672563 100644 (file)
@@ -28,7 +28,9 @@ For more about specifying packages, see 'go help packages'.
 The -n flag prints commands that would be executed.
 The -x flag prints commands as they are executed.
 
-For more about build flags, see 'go help build'.
+The build flags supported by go vet are those that control package resolution
+and execution, such as -n, -x, -v, -tags, and -toolexec.
+For more about these flags, see 'go help build'.
 
 See also: go fmt, go fix.
        `,