kitex icon indicating copy to clipboard operation
kitex copied to clipboard

fix (tool/protoc) : import proto files prefix (#563)

Open marunrun opened this issue 2 years ago • 1 comments

What type of PR is this?

fix: A bug fix

What this PR does / why we need it (en: English/zh: Chinese):

en: fix the bug . when use proto and import the others proto will add packagePrefix and regenerate the pb.go zh: 修复 导入其他proto文件时会添加包前缀 并重新pb.go文件的问题

Which issue(s) this PR fixes:

#563

marunrun avatar Jul 18 '22 10:07 marunrun

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 18 '22 10:07 CLAassistant

@marunrun kitex 现在会判断导入的 proto 里定义的 go_package 是否要把文件生成到当前目录的 kitex_gen 下面,是才回生成相关的 .pb.go 文件。你看看是不是解决了你的问题?

lsjbd avatar Aug 18 '22 08:08 lsjbd