mirror of
https://github.com/golang/go.git
synced 2025-05-06 08:03:03 +00:00
test: add a go.mod file in the working directory of nosplit.go
Updates #30228 Change-Id: I41bbedf15fa51242f69a3b1ecafd0d3191271799 Reviewed-on: https://go-review.googlesource.com/c/163518 Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
c6da080b1a
commit
1670da9ee4
@ -218,6 +218,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer os.RemoveAll(dir)
|
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 = strings.Replace(tests, "\t", " ", -1)
|
||||||
tests = commentRE.ReplaceAllString(tests, "")
|
tests = commentRE.ReplaceAllString(tests, "")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user