• Russ Cox's avatar
    cmd/go: pass package config to vet during "go vet" · 56178649
    Russ Cox authored
    After this CL, "go vet" can be guaranteed to have complete type information
    about the packages being checked, even if cgo or swig is in use,
    which will in turn make it reasonable for vet checks to insist on type
    information. It also fixes vet's understanding of unusual import paths
    like relative paths and vendored packages.
    
    For now "go tool vet" will continue to cope without type information,
    but the eventual plan is for "go tool vet" to query the go command for
    what it needs, and also to be able to query alternate build systems
    like bazel. But that's future work.
    
    Fixes #4889.
    Fixes #12556 (if not already fixed).
    Fixes #15182.
    Fixes #16086.
    Fixes #17571.
    
    Change-Id: I932626ee7da649b302cd269b82eb6fe5d7b9f0f2
    Reviewed-on: https://go-review.googlesource.com/74750Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    56178649
Name
Last commit
Last update
..
all Loading commit data...
internal Loading commit data...
testdata Loading commit data...
README Loading commit data...
asmdecl.go Loading commit data...
assign.go Loading commit data...
atomic.go Loading commit data...
bool.go Loading commit data...
buildtag.go Loading commit data...
cgo.go Loading commit data...
composite.go Loading commit data...
copylock.go Loading commit data...
dead.go Loading commit data...
deadcode.go Loading commit data...
doc.go Loading commit data...
httpresponse.go Loading commit data...
lostcancel.go Loading commit data...
main.go Loading commit data...
method.go Loading commit data...
nilfunc.go Loading commit data...
print.go Loading commit data...
rangeloop.go Loading commit data...
shadow.go Loading commit data...
shift.go Loading commit data...
structtag.go Loading commit data...
tests.go Loading commit data...
types.go Loading commit data...
unsafeptr.go Loading commit data...
unused.go Loading commit data...
vet_test.go Loading commit data...