ERROR: /home/nagi/.cache/bazel/_bazel_nagi/aa4b8136c93fe278edb3dd1fe70e4b47/external/upb/BUILD:517:28: no such target '@com_google_protobuf//:descriptor_proto_srcs': target 'descriptor_proto_srcs' not declared in package '' defined by /home/nagi/.cache/bazel/_bazel_nagi/aa4b8136c93fe278edb3dd1fe70e4b47/external/com_google_protobuf/BUILD (Tip: use query "@com_google_protobuf//:*" to see all the targets in that package) and referenced by '@upb//:gen_descriptor_upb_proto_stage1'
Root cause
grpc 1.55+ uses protobuf 22+, which brings incompatible changes.
Error
ERROR: /home/nagi/.cache/bazel/_bazel_nagi/aa4b8136c93fe278edb3dd1fe70e4b47/external/upb/BUILD:517:28: no such target '@com_google_protobuf//:descriptor_proto_srcs': target 'descriptor_proto_srcs' not declared in package '' defined by /home/nagi/.cache/bazel/_bazel_nagi/aa4b8136c93fe278edb3dd1fe70e4b47/external/com_google_protobuf/BUILD (Tip: use
query "@com_google_protobuf//:*"
to see all the targets in that package) and referenced by '@upb//:gen_descriptor_upb_proto_stage1'Root cause
grpc 1.55+ uses protobuf 22+, which brings incompatible changes.
rules_proto is still stick to protobuf 21
Verified
Start with https://github.com/arcticmatt/grpc_getting_started
Test with
WORKSPACE (failed)
WORKSPACE (success)