...

Text file src/cmd/go/testdata/script/build_relative_tmpdir.txt

Documentation: cmd/go/testdata/script

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

View as plain text