1
0
mirror of https://github.com/golang/go synced 2024-10-01 13:28:37 -06:00

goinstall: display helpful message when encountering a cgo package.

R=rsc
CC=golang-dev
https://golang.org/cl/2701042
This commit is contained in:
Andrew Gerrand 2010-10-26 10:59:30 +11:00
parent 35f8a3f90e
commit ec8f8149d2

View File

@ -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" {