diff --git a/src/cmd/go/testdata/script/load_invalid_import_path.txt b/src/cmd/go/testdata/script/load_invalid_import_path.txt index 6143134dae1..5a219be7709 100644 --- a/src/cmd/go/testdata/script/load_invalid_import_path.txt +++ b/src/cmd/go/testdata/script/load_invalid_import_path.txt @@ -1,10 +1,10 @@ # Tests issue 49137. The following commands should not panic any way. ! go list '"a"' -stderr 'malformed import path "\\"a\\"": invalid char ''"''' +stderr '^malformed import path "\\"a\\"": invalid char ''"''$' ! go build '' -ldflags='-X "main.Tags="' -stderr 'malformed import path "-ldflags=-X \\"main.Tags=\\"": leading dash' +stderr '^malformed import path "-ldflags=-X \\"main.Tags=\\"": leading dash$' -- go.mod -- module m