]> Cypherpunks repositories - gostls13.git/commit
cmd/api: fix tool for recent go/build change
authorRuss Cox <rsc@golang.org>
Wed, 11 Sep 2013 18:42:34 +0000 (14:42 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 11 Sep 2013 18:42:34 +0000 (14:42 -0400)
commitcdc5356c938446fa6b237c54c2c6d5e5d5f267c0
treeeaa408a30c6c751ee0a53a6fd07f54807dc60c5d
parent6624b708660460600041bf7391e4f03b13b6edef
cmd/api: fix tool for recent go/build change

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
src/cmd/api/goapi.go