diff --git a/test/nosplit.go b/test/nosplit.go index 734f456cc9..46810b1a2f 100644 --- a/test/nosplit.go +++ b/test/nosplit.go @@ -218,6 +218,10 @@ func main() { } defer os.RemoveAll(dir) + if err := ioutil.WriteFile(filepath.Join(dir, "go.mod"), []byte("module go-test-nosplit\n"), 0666); err != nil { + log.Panic(err) + } + tests = strings.Replace(tests, "\t", " ", -1) tests = commentRE.ReplaceAllString(tests, "")