chai2010 / protorpc

prtorpc(2013-2021): Google Protocol Protobufs RPC for Go.
http://godoc.org/github.com/chai2010/protorpc
BSD 3-Clause "New" or "Revised" License
59 stars 14 forks source link

你好大佬我按照方法尝试报错了,麻烦有空看下 #11

Open jalvinhu opened 4 years ago

jalvinhu commented 4 years ago

D:\开发工具\go-code\learn\rpc\proto\pb>protoc --protorpc_out=. arith.proto WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated. A future release of golang/protobuf will delete this package, which has long been excluded from the compatibility promise.

2020/06/10 09:10:58 template: :12:15: executing "" at <$File.PackageName>: can't evaluate field PackageName in type *generator.FileDescriptor --protorpc_out: protoc-gen-protorpc: Plugin failed with status code 1.

chai2010 commented 3 years ago

可能是protoc-gen-go升级导致的不兼容问题,可以试试先 go install github.com/golang/protobuf/protoc-gen-go 安装 protorpc 依赖的版本