From 3bd95485ad64fa4d1c3732ad3b8bcb142841dbb7 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 18 Mar 2024 13:43:04 -0700 Subject: [PATCH] cmd/go: fix long test CL 571396 introduced quotes around user-provided names in error messages. Update a test case to match the changed error message. Change-Id: I3de0ea32f363ac83dcecae164ceab74e28dea086 Reviewed-on: https://go-review.googlesource.com/c/go/+/572555 Reviewed-by: Robert Griesemer LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase Auto-Submit: Robert Griesemer --- src/cmd/go/testdata/script/mod_vendor_goversion.txt | 4 ++-- 1 file 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 38975c8a2b..18cd030fcd 100644 --- a/src/cmd/go/testdata/script/mod_vendor_goversion.txt +++ b/src/cmd/go/testdata/script/mod_vendor_goversion.txt @@ -7,7 +7,7 @@ go build example.net/need117 ! go build example.net/bad114 -stderr '^bad114[/\\]bad114.go:15:2: duplicate method Y( .*)?$' +stderr '^bad114[/\\]bad114.go:15:2: duplicate method .?Y.?( .*)?$' # With a vendor/modules.txt lacking language versions, the world is topsy-turvy, @@ -43,7 +43,7 @@ go build example.net/need117 grep '^## explicit; go 1.13$' vendor/modules.txt ! go build example.net/bad114 -stderr '^vendor[/\\]example\.net[/\\]bad114[/\\]bad114.go:15:2: duplicate method Y( .+)?$' +stderr '^vendor[/\\]example\.net[/\\]bad114[/\\]bad114.go:15:2: duplicate method .?Y.?( .*)?$' -- go.mod -- module example.net/m -- 2.51.0