From 91855792bab7b498b7b5ad911b0ffba928107888 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Sat, 22 Oct 2016 15:00:28 -0700 Subject: [PATCH] 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 --- src/cmd/api/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmd/api/run.go b/src/cmd/api/run.go index ed5613edd2..202106b805 100644 --- a/src/cmd/api/run.go +++ b/src/cmd/api/run.go @@ -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 == "" {