]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: send all go build -n output to stderr
authorDominik Honnef <dominik@honnef.co>
Sun, 8 Nov 2015 19:27:14 +0000 (20:27 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 8 Nov 2015 21:26:17 +0000 (21:26 +0000)
Also change a -v print, for consistency.

Fixes #12913

Change-Id: I6cc067d9f8dac66b1f9d1a675e0fbe0528371d0d
Reviewed-on: https://go-review.googlesource.com/16737
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/build.go

index e62075379a3a1a901b67f9ea69a154c95fbc1e35..eb6ee0e68f17ff3c1350a5bb29482a80c62a3d45 100644 (file)
@@ -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.