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:
parent
35f8a3f90e
commit
ec8f8149d2
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user