all: fix plan9 build
getgo doesn't work on plan9. Skip it entirely.
And skip the massive slow godoc start-up test. Not worth it.
Change-Id: If062b7c4c8c7c5084e607ed22085657054c10ba9
Reviewed-on: https://go-review.googlesource.com/80737
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/cmd/getgo/download.go b/cmd/getgo/download.go
index a68f474..8fdb2a7 100644
--- a/cmd/getgo/download.go
+++ b/cmd/getgo/download.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/getgo/download_test.go b/cmd/getgo/download_test.go
index 1a47823..5a5cc29 100644
--- a/cmd/getgo/download_test.go
+++ b/cmd/getgo/download_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/getgo/main.go b/cmd/getgo/main.go
index 8d9fbd4..a92ae48 100644
--- a/cmd/getgo/main.go
+++ b/cmd/getgo/main.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
// The getgo command installs Go to the user's system.
package main
diff --git a/cmd/getgo/main_test.go b/cmd/getgo/main_test.go
index 932a739..e430895 100644
--- a/cmd/getgo/main_test.go
+++ b/cmd/getgo/main_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/getgo/path.go b/cmd/getgo/path.go
index 551ac42..52e0462 100644
--- a/cmd/getgo/path.go
+++ b/cmd/getgo/path.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/getgo/path_test.go b/cmd/getgo/path_test.go
index 4cf6647..5355c6e 100644
--- a/cmd/getgo/path_test.go
+++ b/cmd/getgo/path_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/getgo/steps.go b/cmd/getgo/steps.go
index eac6517..41c57d2 100644
--- a/cmd/getgo/steps.go
+++ b/cmd/getgo/steps.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/getgo/system.go b/cmd/getgo/system.go
index 8b5b024..07d6f85 100644
--- a/cmd/getgo/system.go
+++ b/cmd/getgo/system.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !plan9
+
package main
import (
diff --git a/cmd/godoc/godoc_test.go b/cmd/godoc/godoc_test.go
index 8b0c24e..fe87128 100644
--- a/cmd/godoc/godoc_test.go
+++ b/cmd/godoc/godoc_test.go
@@ -205,6 +205,9 @@
// Basic integration test for godoc HTTP interface.
func testWeb(t *testing.T, withIndex bool) {
+ if runtime.GOOS == "plan9" {
+ t.Skip("skipping on plan9; files to start up quickly enough")
+ }
bin, cleanup := buildGodoc(t)
defer cleanup()
addr := serverAddress(t)