aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-02-22 15:58:15 -0500
committerBryan C. Mills <bcmills@google.com>2019-02-26 02:44:45 +0000
commit1670da9ee4aabe3a9e35703d5ca34265d2294e99 (patch)
treeaa20aa2194c81d529f23382ea9e4d0ac39564105 /test/nosplit.go
parentc6da080b1a74b295ea3dba373234934af949e480 (diff)
downloadgo-1670da9ee4aabe3a9e35703d5ca34265d2294e99.tar.gz
go-1670da9ee4aabe3a9e35703d5ca34265d2294e99.zip
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>
Diffstat (limited to 'test/nosplit.go')
-rw-r--r--test/nosplit.go4
1 files changed, 4 insertions, 0 deletions
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, "")