cmd/api: skip api checks

The version of cmd/api on the release-go1.4 branch
thinks the go.tools repo lives at code.google.com.
There's no point in fixing it; disable it.

Change-Id: Ieb189b1286b86b1d49a264548ee262301c95b014
Reviewed-on: https://go-review.googlesource.com/31752
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2016-10-22 15:00:28 -07:00
parent 02118ad0a0
commit 91855792ba
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ const goToolsVersion = "6698ca2900e2"
var goroot string
func main() {
// Go 1.4 will never have new API, and the code below has bit-rotted.
fmt.Println("Skipping cmd/api checks")
return
log.SetFlags(0)
goroot = os.Getenv("GOROOT") // should be set by run.{bash,bat}
if goroot == "" {