]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix mkdeps
authorRuss Cox <rsc@golang.org>
Tue, 3 Oct 2017 14:08:50 +0000 (10:08 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 3 Oct 2017 14:10:17 +0000 (14:10 +0000)
Mistake introduced just before submitting CL 67650 that somehow
did not break a final pre-submit all.bash on my laptop.

Not sure why all.bash passes locally when mkdeps.go doesn't build.
I guess the test only runs on builders?

Change-Id: I18fb91ada47605035345ba4b2f5e360a5c4b7f6e
Reviewed-on: https://go-review.googlesource.com/67850
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/dist/mkdeps.go

index bb949ab661f34170199e38b441d64525244d6ee8..94add7057c5cbec0861962f85f5e9f290de41d9e 100644 (file)
@@ -155,6 +155,7 @@ func importsAndDepsOf(pkgs ...string) (map[string][]string, map[string][]string)
                args := []string{"list", "-tags", "cmd_go_bootstrap", "-f", "{{range .Imports}}import {{$.ImportPath}} {{.}}\n{{end}}{{range .Deps}}dep {{$.ImportPath}} {{.}}\n{{end}}"}
                args = append(args, pkgs...)
                cmd := exec.Command("go", args...)
+               t := strings.Split(target, "/")
                cmd.Env = append(os.Environ(), "GOOS="+t[0], "GOARCH="+t[1])
                out, err := cmd.Output()
                if err != nil {