github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/build_GOTMPDIR.txt (about) 1 # Set GOCACHE to a clean directory to ensure that 'go build' has work to report. 2 env GOCACHE=$WORK/gocache 3 4 # Build should use GOTMPDIR if set. 5 env GOTMPDIR=$WORK/my-favorite-tmpdir 6 mkdir $GOTMPDIR 7 go build -work hello.go 8 stderr ^WORK=.*my-favorite-tmpdir 9 10 -- hello.go -- 11 package main 12 func main() { println("hello") }