1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:04:43 -07: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" {