aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-10-27 15:06:23 -0400
committerRuss Cox <rsc@golang.org>2021-10-27 19:34:49 +0000
commitffd2284db06d433d60aa75ea413f407b90e583b6 (patch)
treeae25b103355b07659343d9647f00e7f253cc744e /src
parent514ebaec358488d1dcf7253b9d05b4ad8c76c390 (diff)
downloadgo-ffd2284db06d433d60aa75ea413f407b90e583b6.tar.xz
cmd/go: fix testdata/script/mod_vendor_goversion for new compiler output
The message is now a single line, but I couldn't get '\n?' to work. (This test does not run in short mode.) Change-Id: I3d7033f78ac2bf41db7fdfe96cbb988c4533d834 Reviewed-on: https://go-review.googlesource.com/c/go/+/359095 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/go/testdata/script/mod_vendor_goversion.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/testdata/script/mod_vendor_goversion.txt b/src/cmd/go/testdata/script/mod_vendor_goversion.txt
index b4489dae7e..a92eb73d27 100644
--- a/src/cmd/go/testdata/script/mod_vendor_goversion.txt
+++ b/src/cmd/go/testdata/script/mod_vendor_goversion.txt
@@ -3,7 +3,6 @@
[short] skip
-
# Control case: without a vendor directory, need117 builds and bad114 doesn't.
go build example.net/need117
@@ -26,7 +25,8 @@ go mod vendor
! grep 1.17 vendor/modules.txt
! go build example.net/need117
-stderr '^vendor[/\\]example\.net[/\\]need117[/\\]need117.go:5:1[89]:.*\n\tconversion of slices to array pointers only supported as of -lang=go1\.17'
+stderr '^vendor[/\\]example\.net[/\\]need117[/\\]need117.go:5:1[89]:'
+stderr 'conversion of slices to array pointers only supported as of -lang=go1\.17'
! grep 1.13 vendor/modules.txt
go build example.net/bad114