]> Cypherpunks repositories - gostls13.git/commit
cmd/go: vet: pass non-.go files to vet tool
authorAlan Donovan <adonovan@google.com>
Mon, 12 Nov 2018 18:42:46 +0000 (13:42 -0500)
committerAlan Donovan <adonovan@google.com>
Tue, 13 Nov 2018 16:10:01 +0000 (16:10 +0000)
commite787b133284263e53154b8b2f8f6078e8f0c9850
tree56d74b42fbf952ca24fa4d0aaf5c2d8b740d8e79
parentb075dfba8066033e35cd62aaacf3c8a2593cfa57
cmd/go: vet: pass non-.go files to vet tool

The "gofiles" cache entry has been renamed "srcfiles", and it includes
non-Go files (.s, .c, .cxx) that belong to the package. It does not
include raw cgo files.

Added regression test.

Fixes #27665

Change-Id: I4884fe9b4f823f50705f8c2d357a04a8e567734f
Reviewed-on: https://go-review.googlesource.com/c/148904
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/vet_asm.txt [new file with mode: 0644]
src/cmd/vet/main.go