1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:31:23 -07:00

cmd/go: write the WORK=/tmp/... line to stderr

Unlike the other output from the -x flag, it was going to stdout.
Fixes #6362.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13746044
This commit is contained in:
Rob Pike 2013-09-19 11:19:11 +10:00
parent 4182889a09
commit ba10318607

View File

@ -435,7 +435,7 @@ func (b *builder) init() {
fatalf("%s", err)
}
if buildX || buildWork {
fmt.Printf("WORK=%s\n", b.work)
fmt.Fprintf(os.Stderr, "WORK=%s\n", b.work)
}
if !buildWork {
atexit(func() { os.RemoveAll(b.work) })