AlexStocks commented on code in PR #3787: URL: https://github.com/apache/dubbo-go/pull/3787#discussion_r4505079202
########## tools/protoc-gen-triple-openapi/internal/converter/convert.go: ########## @@ -25,13 +25,13 @@ import ( ) import ( + "github.com/pb33f/go-yaml" Review Comment: 💭 这里把 YAML 依赖从 `go.yaml.in/yaml/v4`(Go 官方 YAML 组织的 v4 fork)换成了 `github.com/pb33f/go-yaml`(libopenapi 作者的个人 fork,`go 1.18`)。 这是 libopenapi v0.42 上游的选择(它自己也不再依赖 `go.yaml.in/yaml/v4`),跟随是合理的;但由于它现在是本工具的**直接依赖**,建议在 PR 描述里补两句: 1. 为什么必须跟随(`go.yaml.in/yaml/v4` 与 libopenapi v0.42 的 `Node` 类型不再兼容?); 2. 该 fork 的许可证与维护状态(单维护者 fork 属于需要记录的风险)。 另外 README 里 "Go 1.23 → Go 1.26" 是一次**面向工具使用者的破坏性变更**(本地 Go < 1.26 将无法 `go run`/`go install` 这个生成器),建议在 README 的 Requirements 附近加一行说明原因("required by libopenapi v0.42"),避免使用者以为是笔误。 -- 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]
