• Russ Cox's avatar
    cmd/api: fix tool for recent go/build change · cdc5356c
    Russ Cox authored
    Asking about runtime/cgo when CgoEnabled=false now correctly
    returns an error from build.Import (specifically, NoGoError), because
    there are no buildable Go files in that directory.
    
    The API tool was depending on it returning a package with no Go
    files instead. Correct that assumption.
    
    Fixes all.bash on local machines.
    (Dashboard appears not to be running the api tool at all.)
    
    Update #6124
    
    TBR=golang-dev
    CC=golang-dev
    https://golang.org/cl/13385046
    cdc5356c
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...