AlexStocks commented on code in PR #3455: URL: https://github.com/apache/dubbo-go/pull/3455#discussion_r4612512112
########## protocol/triple/triple_protocol/internal/gen/proto/connect/ping/v1/ping.pb.go: ########## @@ -17,24 +17,21 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) +// protoc-gen-go v1.36.10 Review Comment: [P2] 6 个生成文件换了代码生成器版本,仓库没有记录该版本 本 PR 的目标是删除 `protocol/grpc`,但同时把 `triple_protocol` 下 6 个 `.pb.go` 整体重生成,生成器从 `protoc-gen-go v1.30.0` / `protoc (unknown)`(base)变为 `v1.36.10` / `protoc v3.21.12`(本文件第 20-21 行)。同源变化的文件还有:`internal/gen/proto/connect/collide/v1/collide.pb.go`、`internal/gen/proto/connect/import/v1/import.pb.go`、`internal/gen/proto/connectext/grpc/status/v1/status.pb.go`、`internal/proto/connectext/grpc/status/v1/status.pb.go`、`internal/interoperability/interop.triple_wrapper.pb.go`。 其中只有 `internal/proto/connectext/grpc/status/v1/status.proto` 的 `go_package` 修正(`protocol/grpc_new/triple/proto/...` → 实际路径)必须重生成;其余差异来自生成器换版(新增 `unsafe` 导入与 `protogen:"open.v1"` 标记、`protoimpl.UnsafeEnabled` 分支消失、descriptor 字面量重排),合计约 700 行与删除 `protocol/grpc` 无关。 本次编译不受影响(实测 head b6dd9f61:`go build ./...` 退出 0,`go vet ./...` 退出 0,`go test ./protocol/triple/...` 中 `triple_protocol` 包 ok;唯一 FAIL 的 `TestClientInvokeWithTimeout/with_TLS` 与本改动面无交集,属基线/环境失败)。风险在可复现性:`internal/proto/buf.gen.yaml` 只写 `- name: go`,没有钉住插件版本,CI 也没有重生成后比对 diff 的步骤,因此下一个贡献者用任意版本执行 `buf generate` 会再产生同量级 diff,而这批文件究竟由哪个版本生成,仓库里没有任何记录。 建议:在 `buf.gen.yaml` 或 `internal/proto/` 下的说明里记录本次使用的 `protoc-gen-go v1.36.10` / `protoc v3.21.12`;并在 PR 描述里写明这批重生成是有意为之(当前描述只提到删除 `protocol/grpc`,reviewer 无法判断这 700 行是否误带)。 -- 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]
