-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
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
goctl rpc proto 生成代码文件的时候报异常 #825
Comments
@xhochipe 这个我在文档中有说明,request和response不支持外部的message。 |
在一个项目中,很多结构本来是可以共用的,不支持外部的message, 就需要在各个.proto中重复定义,这会给维护带来了很多不方便和不一致呀? |
In a project, many structures can be shared. If external messages are not supported, they need to be repeatedly defined in each .proto. This will bring a lot of inconvenience and inconsistency to maintenance. |
期望加强,不然proto文件中定义的message就重复太多了 |
It is expected to be strengthened, otherwise the message defined in the proto file will be repeated too much |
哪时候可以支持外部的message @anqiansong |
最近也遇到了,希望能支持下。 |
I also encountered it recently, and hope to support it. |
如果不支持引入外部 protobuf 的话,protobuf 本身的功能就会大打折扣,造成很多代码冗余,go-zero 就显得很鸡肋了 |
If the introduction of external protobuf is not supported, the function of protobuf itself will be greatly reduced, resulting in a lot of code redundancy, and go-zero will appear to be useless. |
goctl rpc proto -src .\b.proto -dir . -style go_zero
目录:
在上面引入google中的Empty 和自己common.proto中定义的message ,goctl rpc proto 生成代码都报错:request type must defined in b.proto
protoc version: libprotoc 3.17.3
goctl :goctl.exe version 1.1.6 windows/amd64
The text was updated successfully, but these errors were encountered: