feat: update deps to stay with go 1.20 #1434
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The current latest uber mockgen dependency require go 1.22, specify the version to stay with go 1.20.
Rationale
tell us why we need these changes...
Example
when running make install-tools:
go install go.uber.org/mock/mockgen@latest
go.uber.org/mock/mockgen
/root/go/pkg/mod/go.uber.org/[email protected]/mockgen/package_mode.go:93:21: undefined: types.Unalias
/root/go/pkg/mod/go.uber.org/[email protected]/mockgen/package_mode.go:147:17: cannot range over t.NumEmbeddeds() (value of type int)
/root/go/pkg/mod/go.uber.org/[email protected]/mockgen/package_mode.go:194:28: undefined: types.Alias
/root/go/pkg/mod/go.uber.org/[email protected]/mockgen/package_mode.go:211:18: cannot range over genericType.TypeArgs().Len() (value of type int)
/root/go/pkg/mod/go.uber.org/[email protected]/mockgen/package_mode.go:270:17: cannot range over sig.Params().Len() (value of type int)
/root/go/pkg/mod/go.uber.org/[email protected]/mockgen/package_mode.go:303:17: cannot range over sig.Results().Len() (value of type int)
note: module requires Go 1.22
make: *** [Makefile:43: install-tools] Error 1
Changes
Notable changes:
Potential Impacts