Skip to content

Missing dependency: protoc-gen-openapiv2/options/annotations.proto not included in Ruby gRPC SDK #2

@albertoferro

Description

@albertoferro

When trying to use the Ruby gRPC SDK (passkit-ruby-grpc-sdk v1.1.105), requiring any of the generated service stubs (e.g. io/member/a_rpc_services_pb.rb) fails with the following error:

Unable to build file to DescriptorPool: Depends on file 'protoc-gen-openapiv2/options/annotations.proto', but it has not been loaded (Google::Protobuf::TypeError)

It looks like the generated Ruby code depends on protoc-gen-openapiv2/options/annotations.proto, but this proto (and its generated Ruby bindings) are not included in the published gem.
Without this file, the SDK cannot load service definitions, making it unusable out of the box.

Steps to Reproduce:

Install the gem in a Ruby (or Rails) project:

gem install passkit-ruby-grpc-sdk

In Rails console or IRB:

require "io/member/a_rpc_services_pb"

Observe the error above.

Expected behavior:
The gem should ship with all required generated Ruby files, including dependencies from protoc-gen-openapiv2, so that consumers can load and use the stubs without additional setup.

Workarounds tried:

Manually generating Ruby bindings for annotations.proto from the grpc-gateway repo.

Injecting an empty descriptor into Google::Protobuf::DescriptorPool to bypass the error.

Both workarounds are inconvenient and fragile; ideally the gem should include everything needed.

Environment:

Ruby version: 3.x (tested inside Docker on aarch64-linux-gnu)

Gem version: passkit-ruby-grpc-sdk (1.1.105)

gRPC gem version: 1.75.0

Request:
Could you please include the missing proto dependencies (e.g. protoc-gen-openapiv2/options/annotations.proto and its generated Ruby bindings) in the next release of the Ruby SDK?

This would ensure the gem is immediately usable after installation, without requiring manual proto compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions