We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
cloudwego/kitex#1624
To Reproduce
syntax = "proto3"; package svc; option go_package = "svc/model"; message Model { // 这里定义一个嵌套的 message message SubModel { int64 id = 1; } int64 id = 1; string name = 2; }
syntax = "proto3"; package svc; // 这里 proto 的 package 与 model.proto 相同 option go_package = "svc/req"; // 这里 go 的package 与 model.proto 不同 import "model.proto"; // 这里引入 model message Req { Model md = 1; // 这个引用,在 go 代码中能正确加上 model package Model.SubModel = 2; // 这个引用,没有加 model package 导致编译错误 }
使用 kitex 生成 fastapi
kitex -I ${PBPATH} ./req.proto
生成的 fastapi 代码中,Model 类型的引用缺少 go package
Screenshots
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
cloudwego/kitex#1624
To Reproduce
使用 kitex 生成 fastapi
生成的 fastapi 代码中,Model 类型的引用缺少 go package
Screenshots
The text was updated successfully, but these errors were encountered: