github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/src/cmd/go/testdata/script/build_GOTMPDIR.txt (about)

     1  # Build should use GOTMPDIR if set.
     2  env GOTMPDIR=$WORK/my-favorite-tmpdir
     3  env GOCACHE=off
     4  mkdir $GOTMPDIR
     5  go build -work hello.go
     6  stderr ^WORK=.*my-favorite-tmpdir
     7  
     8  -- hello.go --
     9  package main
    10  func main() { println("hello") }
    11