From: Dominik Honnef Date: Sun, 8 Nov 2015 19:27:14 +0000 (+0100) Subject: cmd/go: send all go build -n output to stderr X-Git-Tag: go1.6beta1~589 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3953c1d84f2671615e842cb402e1aec6667530aa;p=gostls13.git cmd/go: send all go build -n output to stderr Also change a -v print, for consistency. Fixes #12913 Change-Id: I6cc067d9f8dac66b1f9d1a675e0fbe0528371d0d Reviewed-on: https://go-review.googlesource.com/16737 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index e62075379a..eb6ee0e68f 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -1287,11 +1287,11 @@ func (b *builder) build(a *action) (err error) { // different sections of the bootstrap script have to // be merged, the banners give patch something // to use to find its context. - fmt.Printf("\n#\n# %s\n#\n\n", a.p.ImportPath) + b.print("\n#\n# " + a.p.ImportPath + "\n#\n\n") } if buildV { - fmt.Fprintf(os.Stderr, "%s\n", a.p.ImportPath) + b.print(a.p.ImportPath + "\n") } // Make build directory.