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

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

View as plain text