From e65c92e6641ca67fdb9faabb3df94d3d2498f434 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Tue, 12 Apr 2022 07:06:45 -0600 Subject: [PATCH] Update record/replay files for Go 1.18 This fixes error message mismatch in InterfaceBindingNotEnoughArgs and InterfaceValueNotEnoughArgs with Go 1.18. The Go version in tests.yml GitHub workflow is updated accordingly. Fixes #355 --- .github/workflows/tests.yml | 2 +- .../testdata/InterfaceBindingNotEnoughArgs/want/wire_errs.txt | 4 +++- .../testdata/InterfaceValueNotEnoughArgs/want/wire_errs.txt | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4a6b29e9..e117dca8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go-version: [1.17.x] + go-version: [1.18.x] runs-on: ${{ matrix.os }} steps: - name: Install Go diff --git a/internal/wire/testdata/InterfaceBindingNotEnoughArgs/want/wire_errs.txt b/internal/wire/testdata/InterfaceBindingNotEnoughArgs/want/wire_errs.txt index cae32670..01a2f6cc 100644 --- a/internal/wire/testdata/InterfaceBindingNotEnoughArgs/want/wire_errs.txt +++ b/internal/wire/testdata/InterfaceBindingNotEnoughArgs/want/wire_errs.txt @@ -1 +1,3 @@ -example.com/foo/wire.go:x:y: not enough arguments in call to wire.Bind \ No newline at end of file +example.com/foo/wire.go:x:y: not enough arguments in call to wire.Bind + have (*Fooer) + want (interface{}, interface{}) \ No newline at end of file diff --git a/internal/wire/testdata/InterfaceValueNotEnoughArgs/want/wire_errs.txt b/internal/wire/testdata/InterfaceValueNotEnoughArgs/want/wire_errs.txt index 2081cb51..d11189ad 100644 --- a/internal/wire/testdata/InterfaceValueNotEnoughArgs/want/wire_errs.txt +++ b/internal/wire/testdata/InterfaceValueNotEnoughArgs/want/wire_errs.txt @@ -1 +1,3 @@ -example.com/foo/wire.go:x:y: not enough arguments in call to wire.InterfaceValue \ No newline at end of file +example.com/foo/wire.go:x:y: not enough arguments in call to wire.InterfaceValue + have (string) + want (interface{}, interface{}) \ No newline at end of file