Aias00 opened a new pull request, #979:
URL: https://github.com/apache/dubbo-go-pixiu/pull/979
## 动机
`github.com/golang/mock` 已被官方标记为废弃(archived),推荐迁移到官方继任者 `go.uber.org/mock`。
## 改动
- **go.mod**: 直接依赖从 `github.com/golang/mock v1.6.0` → `go.uber.org/mock
v0.5.2`
- 旧包保留为 `// indirect`(被 dubbo-go、nacos-sdk 等上游间接拉入,无法移除)
- **4 个 Go 文件**: `import "github.com/golang/mock/gomock"` →
`"go.uber.org/mock/gomock"`
- `pkg/config/xds/xds_test.go`
- `pkg/config/xds/apiclient/grpc_test.go`
- `pkg/config/xds/cds_test.go`
- `pkg/server/controls/mocks/mocks.go`
## 验证
- `go build ./...` ✅
- `go vet ./...` ✅
- `go test ./pkg/config/xds/... ./pkg/server/controls/...` ✅
API 完全兼容,无需改任何业务代码。
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]