chore: migrate from archived golang/mock to go.uber.org/mock#130
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (4)
📝 WalkthroughWalkthroughThis PR migrates the mocking toolkit from golang/mock to go.uber.org/mock by updating the Makefile and go.mod to install/use Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
chore: migrate from archived golang/mock to go.uber.org/mock
Motivation 💡
github.com/golang/mockwas archived by Google in June 2023 and is no longer maintained. The community-supported forkgo.uber.org/mockis now the recommended replacement, receiving Go version compatibility updates and bug fixes.Changes 🛠
github.com/golang/mockwithgo.uber.org/mockingo.modmockgeninstall target in theMakefiletogo.uber.org/mock/mockgen@v0.6.0gomockimport fromgithub.com/golang/mock/gomocktogo.uber.org/mock/gomockin allx/poatest filesx/poa/testutilmocks with the newmockgento match the updated package layoutSummary by CodeRabbit
Chores
Tests