diff --git a/src/cmd/goinstall/main.go b/src/cmd/goinstall/main.go index 07ab622af0f..4e9adf5e406 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" {