cmd/gorelease: update expected errors (fix build)

CL 432555 changed the go/types error message for undeclared names
from "undeclared name: X" to "undefined: X" to match the compiler.
Update the test files.

For golang/go#55326.

Change-Id: I175705ef1aa357f6578cd05025a35e52520e523c
Reviewed-on: https://go-review.googlesource.com/c/exp/+/435315
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/cmd/gorelease/testdata/errors/errors.test b/cmd/gorelease/testdata/errors/errors.test
index 81adeb5..2675218 100644
--- a/cmd/gorelease/testdata/errors/errors.test
+++ b/cmd/gorelease/testdata/errors/errors.test
@@ -7,28 +7,28 @@
 -- want --
 # example.com/errors/added
 ## errors in release version:
-added/added.go:3:15: undeclared name: Missing
+added/added.go:3:15: undefined: Missing
 
 ## compatible changes
 package added
 
 # example.com/errors/broken
 ## errors in release version:
-broken/broken.go:3:15: undeclared name: Missing
+broken/broken.go:3:15: undefined: Missing
 
 ## incompatible changes
 X: value changed from 12 to unknown
 
 # example.com/errors/deleted
 ## errors in base version:
-deleted/deleted.go:3:15: undeclared name: Missing
+deleted/deleted.go:3:15: undefined: Missing
 
 ## incompatible changes
 package removed
 
 # example.com/errors/fixed
 ## errors in base version:
-fixed/fixed.go:3:15: undeclared name: Missing
+fixed/fixed.go:3:15: undefined: Missing
 
 ## incompatible changes
 X: value changed from unknown to 12
diff --git a/cmd/gorelease/testdata/fix/compatible_other_suggest.test b/cmd/gorelease/testdata/fix/compatible_other_suggest.test
index d545be8..b4f91d3 100644
--- a/cmd/gorelease/testdata/fix/compatible_other_suggest.test
+++ b/cmd/gorelease/testdata/fix/compatible_other_suggest.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/compatible_other_verify.test b/cmd/gorelease/testdata/fix/compatible_other_verify.test
index 484c2af..1403643 100644
--- a/cmd/gorelease/testdata/fix/compatible_other_verify.test
+++ b/cmd/gorelease/testdata/fix/compatible_other_verify.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/compatible_other_verify_err.test b/cmd/gorelease/testdata/fix/compatible_other_verify_err.test
index d8d3a92..d922b15 100644
--- a/cmd/gorelease/testdata/fix/compatible_other_verify_err.test
+++ b/cmd/gorelease/testdata/fix/compatible_other_verify_err.test
@@ -6,7 +6,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/compatible_same_suggest.test b/cmd/gorelease/testdata/fix/compatible_same_suggest.test
index a57baa2..72aa3e1 100644
--- a/cmd/gorelease/testdata/fix/compatible_same_suggest.test
+++ b/cmd/gorelease/testdata/fix/compatible_same_suggest.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/compatible_same_verify.test b/cmd/gorelease/testdata/fix/compatible_same_verify.test
index 6f1c335..420f380 100644
--- a/cmd/gorelease/testdata/fix/compatible_same_verify.test
+++ b/cmd/gorelease/testdata/fix/compatible_same_verify.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/incompatible_other_suggest.test b/cmd/gorelease/testdata/fix/incompatible_other_suggest.test
index 6432119..8d9465e 100644
--- a/cmd/gorelease/testdata/fix/incompatible_other_suggest.test
+++ b/cmd/gorelease/testdata/fix/incompatible_other_suggest.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/incompatible_other_verify.test b/cmd/gorelease/testdata/fix/incompatible_other_verify.test
index f6fa31c..20f6f8c 100644
--- a/cmd/gorelease/testdata/fix/incompatible_other_verify.test
+++ b/cmd/gorelease/testdata/fix/incompatible_other_verify.test
@@ -6,7 +6,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/incompatible_same_suggest.test b/cmd/gorelease/testdata/fix/incompatible_same_suggest.test
index 6ad492c..f05dd78 100644
--- a/cmd/gorelease/testdata/fix/incompatible_same_suggest.test
+++ b/cmd/gorelease/testdata/fix/incompatible_same_suggest.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Bad: changed from func() int to func() string
diff --git a/cmd/gorelease/testdata/fix/incompatible_same_verify.test b/cmd/gorelease/testdata/fix/incompatible_same_verify.test
index e210aec..2866753 100644
--- a/cmd/gorelease/testdata/fix/incompatible_same_verify.test
+++ b/cmd/gorelease/testdata/fix/incompatible_same_verify.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Bad: changed from func() int to func() string
diff --git a/cmd/gorelease/testdata/fix/patch_suggest.test b/cmd/gorelease/testdata/fix/patch_suggest.test
index 20360d6..3c78cd3 100644
--- a/cmd/gorelease/testdata/fix/patch_suggest.test
+++ b/cmd/gorelease/testdata/fix/patch_suggest.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int
diff --git a/cmd/gorelease/testdata/fix/patch_verify.test b/cmd/gorelease/testdata/fix/patch_verify.test
index 50b55be..d1dda68 100644
--- a/cmd/gorelease/testdata/fix/patch_verify.test
+++ b/cmd/gorelease/testdata/fix/patch_verify.test
@@ -5,7 +5,7 @@
 -- want --
 # example.com/fix/bad
 ## errors in base version:
-bad/bad.go:3:15: undeclared name: NOTYPE
+bad/bad.go:3:15: undefined: NOTYPE
 
 ## incompatible changes
 Broken: changed from func() invalid type to func() int