cloudwego / cloudwego.github.io

Website for CloudWeGo
https://www.cloudwego.io
Apache License 2.0
132 stars 247 forks source link

How to generate ref struct? #892

Closed lilhammer111 closed 10 months ago

lilhammer111 commented 10 months ago

I generate my structures in remote repository in advance, and then created my idl-ref.yml file in the same directory as the idl file in my local project.Everything is ready. I executed the command like kitex --module xxx xxx.thrift in the directory of idl-ref.yml,but got the original code generated by kitex instead of a reference. What went wrong? Here is my idl-ref.yml file:

ref:
  common_rpc.thrift: "xxxx.com/public-repo/ref/kitex_gen/common_rpc"
  user.thrift: "xxx.comt/public-repo/ref/kitex_gen/micro_user"
rogerogers commented 10 months ago

821

rogerogers commented 10 months ago

kitex -module xxx -service xxx -thrift code_ref xxx.thrift

lilhammer111 commented 10 months ago

Yes, it works! Thanks

copy rogers @.***> 于2023年12月14日周四 10:38写道:

kitex -module xxx -service xxx -thrift code_ref xxx.thrift

— Reply to this email directly, view it on GitHub https://github.com/cloudwego/cloudwego.github.io/issues/892#issuecomment-1855018281, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3BGWHHPXWGEKBZOXOOGUTDYJJRCFAVCNFSM6AAAAABAUCZODWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGAYTQMRYGE . You are receiving this because you authored the thread.Message ID: @.***>