go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Some types are generated as aliased types in call.tpl for importing proto files.

Open JerryTam opened this issue 1 year ago • 1 comments

1,/protos/user/service.proto 内定义所有rpc接口 2,/protos/user/types/*.proto 内定义所有message 3,proto文件内option go_package设置的包名相同 4,在service.proto内import types目录下的proto文件

假设types目录下有common.proto文件

通过goctl rpc protoc命令不会生成 common.proto内定义的类型

通过原本protoc命令可以生成pb文件

问题: 发现文件生成模版 rpc/call.tpl内的{{.alias}}未正常生成别名

请问需要怎样设置才能正常的使用proto文件的import。

JerryTam avatar May 08 '23 14:05 JerryTam

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 13 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 13 '24 01:08 github-actions[bot]