Commit ec8f8149 authored by Andrew Gerrand's avatar Andrew Gerrand

goinstall: display helpful message when encountering a cgo package.

R=rsc
CC=golang-dev
https://golang.org/cl/2701042
parent 35f8a3f9
...@@ -185,6 +185,11 @@ func install(pkg, parent string) { ...@@ -185,6 +185,11 @@ func install(pkg, parent string) {
return return
} }
for p := range m { 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) install(p, pkg)
} }
if pkgname == "main" { if pkgname == "main" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment