Skip to content

chore: migrate from deprecated golang/mock to go.uber.org/mock#377

Merged
retr0h merged 1 commit intomainfrom
chore/migrate-uber-mock
Apr 13, 2026
Merged

chore: migrate from deprecated golang/mock to go.uber.org/mock#377
retr0h merged 1 commit intomainfrom
chore/migrate-uber-mock

Conversation

@retr0h
Copy link
Copy Markdown
Collaborator

@retr0h retr0h commented Apr 13, 2026

Summary

  • Replace github.com/golang/mock with the maintained go.uber.org/mock fork
  • Update all go:generate directives (93 files)
  • Update all gomock imports (93 files)
  • Update go.mod tool section: go.uber.org/mock/mockgen
  • Regenerate all mocks with the new toolchain
  • Auto-format import ordering for go.uber.org group

github.com/golang/mock is archived and no longer maintained. go.uber.org/mock is the official successor.

Test plan

  • go build ./... compiles
  • go test ./... all pass (0 failures)
  • golangci-lint zero issues
  • Zero remaining golang/mock references in codebase

🤖 Generated with Claude Code

Replace github.com/golang/mock with the maintained go.uber.org/mock
fork across all go:generate directives, imports, and go.mod tool
section. Regenerate all mocks with the new toolchain.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #377   +/-   ##
=======================================
  Coverage   99.91%   99.91%           
=======================================
  Files         484      484           
  Lines       24721    24721           
=======================================
  Hits        24699    24699           
  Misses         14       14           
  Partials        8        8           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8513156...8744345. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@retr0h retr0h merged commit 36014f3 into main Apr 13, 2026
11 checks passed
@retr0h retr0h deleted the chore/migrate-uber-mock branch April 13, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant