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>
This commit is contained in:
Родитель
439092de68
Коммит
c76eaa363f
|
@ -7,28 +7,28 @@ proxyVersions=example.com/errors@v0.1.0
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ release=v1.1.0
|
|||
-- 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
|
||||
|
|
|
@ -6,7 +6,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ release=v1.0.1 # not actually valid, but gorelease can't tell
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -6,7 +6,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ release=v1.0.1 # not actually valid, but gorelease can't tell
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ success=false
|
|||
-- 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
|
||||
|
|
|
@ -5,7 +5,7 @@ release=v1.0.1
|
|||
-- 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче