Your IP : 172.28.240.42


Current Path : /usr/local/go/src/cmd/go/testdata/script/
Upload File :
Current File : //usr/local/go/src/cmd/go/testdata/script/build_relative_tmpdir.txt

env GO111MODULE=off

# If GOTMPDIR is relative, 'go build' should derive an absolute $WORK directory.
cd $WORK
mkdir tmp
env GOTMPDIR=tmp
go build -work a
stderr 'WORK='$WORK

# Similarly if TMP/TMPDIR is relative.
env GOTMPDIR=
env TMP=tmp    # Windows
env TMPDIR=tmp # Unix
go build -work a
stderr 'WORK='$WORK

-- a/a.go --
package a