dubbogo/tools

protoc命令生成的pb文件缺少 common.ErrorWithAttachment

wwek opened this issue · 3 comments

wwek commented

安装和生成pb

export GO111MODULE="on"
export GOPROXY="http://goproxy.io"
go install github.com/dubbogo/tools/cmd/protoc-gen-triple
cd api
protoc -I . helloworld.proto --triple_out=plugins=triple:.

结果:

image

环境信息:
dubbo.apache.org/dubbo-go/v3 v3.0.0-rc2
github.com/dubbogo/triple v1.0.1

wwek commented

这是一个版本匹配的问题。
github.com/dubbogo/tools/cmd/protoc-gen-triple

https://github.com/dubbogo/triple

dubbo.apache.org/dubbo-go/v3

对应的版本匹配应该是如何?

wwek commented

找到原因了:
使用go get dubbo.apache.org/dubbo-go/v3 安装后
版本为 dubbo.apache.org/dubbo-go/v3 v3.0.0-rc2

解决办法 go.mod 改为
dubbo.apache.org/dubbo-go/v3 v3.0.0-rc2.0.20211027072544-4d4fb6ed2f6c
github.com/dubbogo/triple v1.0.8

@wwek Please refer to newest doc: at https://dubbogo.github.io , you can join dingtalk group 23331795 to discuss we us.