-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Deprecated golang/mock Usage Report
Last Updated: 2025-11-25 07:22:30 UTC
Replacement: go.uber.org/mock
Reference: golang/mock (archived)
Summary
- Total Repositories Scanned: 835
- Repositories Skipped (forks): 0
- Repositories Skipped (abandoned - no commits in 6 months): 371
- Repositories Skipped (no go.mod): 94
- Repositories Actually Checked: 370
- Repositories Using Deprecated golang/mock: 43
- Usage Percentage: 11.6%
openshift
Repositories Using Deprecated golang/mock: 43
What to Do
The github.com/golang/mock package was archived in June 2023 and is no longer maintained.
Migration Steps
-
Update go.mod dependency:
go get go.uber.org/mock/mockgen@latest go mod tidy
-
Update import statements:
- Replace:
github.com/golang/mock/gomock - With:
go.uber.org/mock/gomock
- Replace:
-
Update mockgen tool references:
- Update
go:generatedirectives - Update Makefiles or scripts
- Update
-
Regenerate mocks:
go generate ./...
-
Run tests:
go test ./...
Resources
This issue is automatically updated by the gomock-lookup.sh script.
Metadata
Metadata
Assignees
Labels
No labels