aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-10-26 10:59:30 +1100
committerAndrew Gerrand <adg@golang.org>2010-10-26 10:59:30 +1100
commitec8f8149d270a1f9cbcec52834c4effe0fc41cc7 (patch)
tree0d30d61a13e8c2e5feb50331381c23672743325b
parent35f8a3f90e96d192dbf6eeb41e7854f54a2b7278 (diff)
downloadgo-ec8f8149d270a1f9cbcec52834c4effe0fc41cc7.tar.gz
go-ec8f8149d270a1f9cbcec52834c4effe0fc41cc7.zip
goinstall: display helpful message when encountering a cgo package.
R=rsc CC=golang-dev https://golang.org/cl/2701042
-rw-r--r--src/cmd/goinstall/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/goinstall/main.go b/src/cmd/goinstall/main.go
index 07ab622af0..4e9adf5e40 100644
--- a/src/cmd/goinstall/main.go
+++ b/src/cmd/goinstall/main.go
@@ -185,6 +185,11 @@ func install(pkg, parent string) {
return
}
for p := range m {
+ if p == "C" {
+ fmt.Fprintf(os.Stderr, "%s: %s: cgo packages are not supported yet. Try installing manually.\n", argv0, pkg)
+ errors = true
+ return
+ }
install(p, pkg)
}
if pkgname == "main" {