Commit 3953c1d8 authored by Dominik Honnef's avatar Dominik Honnef Committed by Brad Fitzpatrick

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/16737Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 2ffdbd7c
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment