Skip to content

Commit c76eaa3

Browse files
griesemergopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Run-TryBot: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 439092d commit c76eaa3

12 files changed

+15
-15
lines changed

cmd/gorelease/testdata/errors/errors.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ proxyVersions=example.com/[email protected]
77
-- want --
88
# example.com/errors/added
99
## errors in release version:
10-
added/added.go:3:15: undeclared name: Missing
10+
added/added.go:3:15: undefined: Missing
1111

1212
## compatible changes
1313
package added
1414

1515
# example.com/errors/broken
1616
## errors in release version:
17-
broken/broken.go:3:15: undeclared name: Missing
17+
broken/broken.go:3:15: undefined: Missing
1818

1919
## incompatible changes
2020
X: value changed from 12 to unknown
2121

2222
# example.com/errors/deleted
2323
## errors in base version:
24-
deleted/deleted.go:3:15: undeclared name: Missing
24+
deleted/deleted.go:3:15: undefined: Missing
2525

2626
## incompatible changes
2727
package removed
2828

2929
# example.com/errors/fixed
3030
## errors in base version:
31-
fixed/fixed.go:3:15: undeclared name: Missing
31+
fixed/fixed.go:3:15: undefined: Missing
3232

3333
## incompatible changes
3434
X: value changed from unknown to 12

cmd/gorelease/testdata/fix/compatible_other_suggest.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ success=false
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/compatible_other_verify.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ release=v1.1.0
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/compatible_other_verify_err.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ success=false
66
-- want --
77
# example.com/fix/bad
88
## errors in base version:
9-
bad/bad.go:3:15: undeclared name: NOTYPE
9+
bad/bad.go:3:15: undefined: NOTYPE
1010

1111
## incompatible changes
1212
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/compatible_same_suggest.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ success=false
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/compatible_same_verify.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ release=v1.0.1 # not actually valid, but gorelease can't tell
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/incompatible_other_suggest.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ success=false
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/incompatible_other_verify.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ success=false
66
-- want --
77
# example.com/fix/bad
88
## errors in base version:
9-
bad/bad.go:3:15: undeclared name: NOTYPE
9+
bad/bad.go:3:15: undefined: NOTYPE
1010

1111
## incompatible changes
1212
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/incompatible_same_suggest.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ success=false
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Bad: changed from func() int to func() string

cmd/gorelease/testdata/fix/incompatible_same_verify.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ release=v1.0.1 # not actually valid, but gorelease can't tell
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Bad: changed from func() int to func() string

cmd/gorelease/testdata/fix/patch_suggest.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ success=false
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

cmd/gorelease/testdata/fix/patch_verify.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ release=v1.0.1
55
-- want --
66
# example.com/fix/bad
77
## errors in base version:
8-
bad/bad.go:3:15: undeclared name: NOTYPE
8+
bad/bad.go:3:15: undefined: NOTYPE
99

1010
## incompatible changes
1111
Broken: changed from func() invalid type to func() int

0 commit comments

Comments
 (0)