]> Cypherpunks repositories - gostls13.git/commitdiff
goinstall: display helpful message when encountering a cgo package.
authorAndrew Gerrand <adg@golang.org>
Mon, 25 Oct 2010 23:59:30 +0000 (10:59 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 25 Oct 2010 23:59:30 +0000 (10:59 +1100)
R=rsc
CC=golang-dev
https://golang.org/cl/2701042

src/cmd/goinstall/main.go

index 07ab622af0f3445f87a8b40c15a868f2c33bb010..4e9adf5e4064c7e4fc9709fe73a7986c37ffe2e4 100644 (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" {