]> Cypherpunks repositories - gostls13.git/commit
cmd/go/testdata: don't set GOPATH=NUL in test
authorDamien Neil <dneil@google.com>
Wed, 9 Nov 2022 01:07:40 +0000 (17:07 -0800)
committerDamien Neil <dneil@google.com>
Wed, 9 Nov 2022 18:21:12 +0000 (18:21 +0000)
commit342751a695835fb99ad8b8f9b9f3f818e9086b86
tree77dfd21b391b78ea1003f22932a4f27dfa7bcc5e
parent4f13067f8ac7f2c64a093ef4125cfa03dd67a0a5
cmd/go/testdata: don't set GOPATH=NUL in test

An upcoming change to the filepath package to make IsAbs("NUL")==false
on Windows will cause this test to fail, since it sets GOPATH=NUL and
GOPATH must be an absolute path.

Set GOPATH to the name of a text file instead. (The intent is that GOPATH
be set to a path that is not writable.)

For #56217.

Change-Id: I18e645fe11547d02d1a2e0e580085e6348c4009a
Reviewed-on: https://go-review.googlesource.com/c/go/+/448896
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/testdata/script/mod_init_empty.txt