Skip to content

Replace golang/mock with uber-go/mock [RHELDST-38102]#603

Merged
dichn merged 1 commit intorelease-engineering:mainfrom
dichn:use-uber-mock
Mar 30, 2026
Merged

Replace golang/mock with uber-go/mock [RHELDST-38102]#603
dichn merged 1 commit intorelease-engineering:mainfrom
dichn:use-uber-mock

Conversation

@dichn
Copy link
Copy Markdown
Contributor

@dichn dichn commented Mar 26, 2026

The golang/mock package is no longer maintained and has been archived. This migrates to go.uber.org/mock v0.6.0, which is the actively maintained fork.

Changes include:

  • Updated dependencies in go.mod and go.tools.mod
  • Updated all import statements across test files
  • Updated go:generate directives to use new mockgen path
  • Regenerated all mock files with uber-go/mock mockgen

The golang/mock package is no longer maintained and has been archived.
This migrates to go.uber.org/mock v0.6.0, which is the actively maintained fork.

Changes include:
- Updated dependencies in go.mod and go.tools.mod
- Updated all import statements across test files
- Updated go:generate directives to use new mockgen path
- Regenerated all mock files with uber-go/mock mockgen
@dichn dichn merged commit 59c5ce4 into release-engineering:main Mar 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants