<commit_before>env GO111MODULE=on

env GOPATH=$devnull

go list -m
stdout '^example.com$'

go list
stdout '^example.com$'

-- go.mod --
module example.com

go 1.13
-- main.go --
package main

func main() {}
<commit_msg>cmd/go/testdata: don't set GOPATH=NUL in test<commit_after>env GO111MODULE=on

env GOPATH=$WORK${/}invalid-gopath

go list -m
stdout '^example.com$'

go list
stdout '^example.com$'

-- go.mod --
module example.com

go 1.13
-- main.go --
package main

func main() {}

-- $WORK/invalid-gopath
This is a text file, not a directory.

{'fraction_non_alphanumeric': 0.15145985401459855, 'fraction_numerical': 0.021897810218978103, 'mean_word_length': 3.4274193548387095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6710932', 'n_tokens_mistral': 224, 'n_tokens_neox': 211, 'n_words': 60}