岚天逸见

go的descriptorpb.Default_FileOptions_PhpGenericServices的undefined问题

在执行 go 编译是遇到如下问题:

go\pkg\mod\github.com\golang\protobuf@v1.5.2\protoc-gen-go\descriptor\descriptor.pb.go:106:61: undefined: descriptorpb.Default_FileOptions_PhpGenericServices

原因是下列两个依赖库版本不一致:

require (
	github.com/golang/protobuf v1.5.2 // indirect
	google.golang.org/protobuf v1.33.0 // indirect
)

解决办法:

require (
	github.com/golang/protobuf v1.5.4 // indirect
	google.golang.org/protobuf v1.33.0 // indirect
)

posted on   岚天逸见  阅读(627)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义

导航

统计信息

点击右上角即可分享
微信分享提示