github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/build_relative_tmpdir.txt (about)

     1  # If GOTMPDIR is relative, 'go build' should derive an absolute $WORK directory.
     2  cd $WORK
     3  mkdir tmp
     4  env GOTMPDIR=tmp
     5  go build -work a
     6  stderr 'WORK=\$WORK' # the test script itself converts the absolute directory back to $WORK
     7  
     8  # Similarly if TMP/TMPDIR is relative.
     9  env GOTMPDIR=
    10  env TMP=tmp    # Windows
    11  env TMPDIR=tmp # Unix
    12  go build -work a
    13  stderr 'WORK=\$WORK'
    14  
    15  -- a/a.go --
    16  package a