byteweap opened a new issue, #2967:
URL: https://github.com/apache/dubbo-go/issues/2967

   ### ✅ 验证清单
   
   - [x] 🔍 我已经搜索过 [现有 
Issues](https://github.com/apache/dubbo-go/issues),确信这不是重复问题
   
   ### 🚀 Go 版本
   
   1.23.9
   
   ### 📦 Dubbo-go 版本
   
   v3.3.0
   
   ### 🖥️ 服务端配置
   
   dubbo-go, v3.3.0
   
   ### 💻 客户端配置
   
   _No response_
   
   ### 🌐 协议配置
   
   triple [protoc-gen-go-triple --version: 3.0.0]
   
   ### 📋 注册中心配置
   
   _No response_
   
   ### 💾 操作系统
   
   🍎 macOS
   
   ### 📝 Bug 描述
   
   1. 我的项目根目录下,有:
    test
     -a
       - a.proto // 定义统一响应结构 Response
     -b
       - b.proto // 定义服务 B,rpc接口 GetB,返回 Response
     -c
       - c.proto // 定义服务 C,rpc接口 GetC,返回 Response
   b.proto 和 c.proto 中导入 a.proto,统一响应结构
   2. 使用
   protoc -I=. --go_out=./gen/go --go_opt=paths=source_relative a/a.proto
        protoc -I=. --go_out=./gen/go --go_opt=paths=source_relative 
--go-triple_out=./gen/go --go-triple_opt=paths=source_relative b/b.proto
        protoc -I=. --go_out=./gen/go --go_opt=paths=source_relative 
--go-triple_out=./gen/go --go-triple_opt=paths=source_relative c/c.proto
   命令生成对应的go代码,b.pb.go 和 c.pb.go 正常,b.triple.go 和 c.triple.go中 Response未定义,编译不通过
   a.proto:
   
   <img width="381" height="237" alt="Image" 
src="https://github.com/user-attachments/assets/17e78bdc-c283-4363-878d-ef945d606ba0";
 />
   b.proto:
   
   <img width="452" height="373" alt="Image" 
src="https://github.com/user-attachments/assets/90ebfa44-7a6f-487b-a28d-e17e8d1d1ab0";
 />
   c.proto:
   
   <img width="420" height="357" alt="Image" 
src="https://github.com/user-attachments/assets/1a390810-9cbc-431f-959e-c16a307063b4";
 />
   
   ### 🔄 重现步骤
   
   1. 定义 a/a.proto - Response
   2. 定义 b/b.proto - service 和 rpc接口
   3. 定义 c/c.proto - service 和 rpc接口
   4. 在项目根目录下执行:
   protoc -I=. --go_out=./gen/go --go_opt=paths=source_relative a/a.proto
        protoc -I=. --go_out=./gen/go --go_opt=paths=source_relative 
--go-triple_out=./gen/go --go-triple_opt=paths=source_relative b/b.proto
        protoc -I=. --go_out=./gen/go --go_opt=paths=source_relative 
--go-triple_out=./gen/go --go-triple_opt=paths=source_relative c/c.proto
   
   ### ✅ 预期行为
   
   正常编译通过
   
   ### ❌ 实际行为
   
   b.triple.go 编译未通过
   c.triple.go 编译未通过
   
   ### 💡 可能的解决方案
   
   protoc-gen-go-triple目前有无处理跨包导入?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to