• Daniel Martí's avatar
    cmd/vet: don't run buildtag check when in vetxonly mode · 1d1e25fb
    Daniel Martí authored
    The check was running in the loop that read source files in, much before
    any of the other checks ran. Vetxonly makes vet exit early, but after
    all the source files have been read.
    
    To fix this, simply run the buildtag check along with all the other
    checks that get run on specific syntax tree nodes.
    
    Add a cmd/go test with go test -a, to ensure that the issue as reported
    is fixed.
    
    Fixes #26102.
    
    Change-Id: If6e3b9418ffa8166c0f982668b0d10872283776a
    Reviewed-on: https://go-review.googlesource.com/121395
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    1d1e25fb
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...