From: Rob Pike Date: Thu, 19 Sep 2013 01:19:11 +0000 (+1000) Subject: cmd/go: write the WORK=/tmp/... line to stderr X-Git-Tag: go1.2rc2~170 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ba10318607fc131a0c53aded88fd3da681b294c9;p=gostls13.git 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 --- diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index bdbe490ad6..6f35a87f1e 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -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) })