Skip to content
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

returns type must defined in message.proto #3772

Closed
GuoxinL opened this issue Dec 11, 2023 · 4 comments
Closed

returns type must defined in message.proto #3772

GuoxinL opened this issue Dec 11, 2023 · 4 comments

Comments

@GuoxinL
Copy link

GuoxinL commented Dec 11, 2023

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

Generate code using goctl:
image

Generate code using protoc:
image

@GuoxinL
Copy link
Author

GuoxinL commented Dec 11, 2023

goctl's interception of external references to proto weakens proto's capabilities, which I don't think should be done.

@GuoxinL
Copy link
Author

GuoxinL commented Dec 11, 2023

image

1 similar comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants