wechaty / grpc

gRPC Service & Protocol Buffers for Wechaty Puppet
https://wechaty.github.io/grpc/
Apache License 2.0
25 stars 22 forks source link

go ci failed. #100

Closed dchaofei closed 3 years ago

dchaofei commented 3 years ago
bash -x ./generate.sh
+ set -eo pipefail
+ PROTO_BASE_DIR=../proto
+ PROTO_PUPPET_DIR=../proto/wechaty/puppet
+ PROTO_WECHATY_DIR=../proto/wechaty
+ OUT_WECHATY_DIR=./generated/wechaty
+ OUT_PUPPET_DIR=./generated/wechaty/puppet
+ '[' '!' -d '' ']'
+ mkdir -p ./generated/wechaty/puppet
+ protoc --version
libprotoc 3.14.0
+ protoc -I ../proto/wechaty/puppet --go_out=plugins=grpc:./generated/wechaty/puppet --go_opt=paths=source_relative ../proto/wechaty/puppet/base.proto ../proto/wechaty/puppet/contact.proto ../proto/wechaty/puppet/event.proto ../proto/wechaty/puppet/file_box.proto ../proto/wechaty/puppet/friendship.proto ../proto/wechaty/puppet/message.proto ../proto/wechaty/puppet/room.proto ../proto/wechaty/puppet/room_invitation.proto ../proto/wechaty/puppet/room_member.proto ../proto/wechaty/puppet/tag.proto
puppet/file_box.proto: File not found.
message.proto:10:1: Import "puppet/file_box.proto" was not found or had errors.
message.proto:71:3: "wechaty.puppet.FileBoxChunk" seems to be defined in "file_box.proto", which is not imported by "message.proto".  To use it here, please add the necessary import.
message.proto:95:3: "wechaty.puppet.FileBoxChunk" seems to be defined in "file_box.proto", which is not imported by "message.proto".  To use it here, please add the necessary import.
message.proto:132:5: "wechaty.puppet.FileBoxChunk" seems to be defined in "file_box.proto", which is not imported by "message.proto".  To use it here, please add the necessary import.
Makefile:25: recipe for target 'generate' failed
make: *** [generate] Error 1
Error: Process completed with exit code 2.
dchaofei commented 3 years ago

I found out why, and I'll mention a PR later

dchaofei commented 3 years ago

refer: https://github.com/protocolbuffers/protobuf/issues/4176

huan commented 3 years ago

Thank you very much for fixing this problem for the Go community!