]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: write the WORK=/tmp/... line to stderr
authorRob Pike <r@golang.org>
Thu, 19 Sep 2013 01:19:11 +0000 (11:19 +1000)
committerRob Pike <r@golang.org>
Thu, 19 Sep 2013 01:19:11 +0000 (11:19 +1000)
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

src/cmd/go/build.go

index bdbe490ad6f1f8c241b605ed16ce76f95c2d9ae8..6f35a87f1e6b7e2f04fcf77a5573eada06906b0a 100644 (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) })