You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
May I ask why the object in the file cannot be referenced in the return value of go-zero rpc, which can be compiled successfully with the original command, why set this restriction in goctl
To Reproduce
Steps to reproduce the behavior, if applicable:
[goctl-env]: preparing to check env
[goctl-env]: looking up "protoc"
[goctl-env]: "protoc" is installed
[goctl-env]: looking up "protoc-gen-go"
[goctl-env]: "protoc-gen-go" is installed
[goctl-env]: looking up "protoc-gen-go-grpc"
[goctl-env]: "protoc-gen-go-grpc" is installed
[goctl-env]: congratulations! your goctl environment is ready!
Error: line 16:3, returns type must defined in ping.proto
Usage:
goctl rpc protoc [flags]
Examples:
goctl rpc protoc xx.proto --go_out=./pb --go-grpc_out=./pb --zrpc_out=.
Flags:
--branch string The branch of the remote repo, it does work with --remote
-c, --client Whether to generate rpc client (default true)
-h, --help help for protoc
--home string The goctl home path of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
-m, --multiple Generated in multiple rpc service mode
--remote string The remote git repo of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
The git repo directory must be consistent with the https://github.com/zeromicro/go-zero-template directory structure
--style string The file naming format, see [https://github.com/zeromicro/go-zero/blob/master/tools/goctl/config/readme.md]
-v, --verbose Enable log output
--zrpc_out string The zrpc output directory
line 16:3, returns type must defined in ping.proto
Expected behavior
A clear and concise description of what you expected to happen.
I want to be able to use goctl to generate RPC-related code that references other files in proto and structures in other proto files in parameter return values
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
A clear and concise description of what the bug is.
May I ask why the object in the file cannot be referenced in the return value of go-zero rpc, which can be compiled successfully with the original command, why set this restriction in goctl
To Reproduce
Steps to reproduce the behavior, if applicable:
The code is
The error is
returns
Expected behavior
A clear and concise description of what you expected to happen.
I want to be able to use goctl to generate RPC-related code that references other files in proto and structures in other proto files in parameter return values
Screenshots
If applicable, add screenshots to help explain your problem.
Generate code using goctl:
Generate code using protoc:
This is OK
Environments (please complete the following information):
More description
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: