Use go.uber.org/mock/gomock#468
Conversation
| github.com/hashicorp/go-multierror v1.1.1 | ||
| github.com/stretchr/testify v1.8.4 | ||
| github.com/syndtr/goleveldb v1.0.0 | ||
| go.uber.org/mock v0.4.0 |
There was a problem hiding this comment.
Version v0.4.0 of go.uber.org/mock is the latest release compatible with the Go version specified in our go.mod file (1.20). Upgrading beyond v0.4.0 would require us to update the go directive to a newer Go version.
Use the pinned version of mockgen to generate mocks rather than whatever's installed on the system.
78c80bd
|
@frairon @norbertklawikowski Just added one more commit to generate mocks using the pinned version of |
|
@norbertklawikowski I'll rebase after #470 is merged to fix the failing CI? |
|
@owenniles I ran the tests successfully locally, so I will merge :) Thanks for your work! |
In this PR, I’ve replaced
github.com/golang/mock/gomockwithgo.uber.org/mock/gomock. The original repository, github.com/golang/mock, appears to be unmaintained since June 2023. Its README recommends switching to Uber's fork, which is actively maintained.