github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/build_GOTMPDIR.txt (about) 1 env GO111MODULE=off 2 [short] skip 3 4 # Set GOCACHE to a clean directory to ensure that 'go build' has work to report. 5 env GOCACHE=$WORK/gocache 6 7 # Build should use GOTMPDIR if set. 8 env GOTMPDIR=$WORK/my-favorite-tmpdir 9 mkdir $GOTMPDIR 10 go build -work hello.go 11 stderr ^WORK=.*my-favorite-tmpdir 12 13 -- hello.go -- 14 package main 15 func main() { println("hello") }