You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The glob in the srcs attr does not match any of the files, as both the gem name and contents are possibly incorrect.
In grpc's case, the path is lib/ruby/2.7.0/gems/grpc-1.35.0-x86_64-linux/... and does not contain a 'lib' directory.
In google-protobuf's case, the path is lib/ruby/2.7.0/gems/google-protobuf-3.14.0-x86_64-linux/... and does contain a 'lib' directory.
Therefore, when trying to require 'grpc' it cannot find any files:
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- grpc (LoadError)
Cycling back around to this: grpc still fails to load due to missing a file at etc/roots.pem. It's a pretty odd layout that can be fixed by adding includes = {"grpc": ["etc"]} to the ruby_bundle call, but I dunno if there's a fix you want to do here for that?
When trying to use google-protobuf and grpc gems, the paths created do not match the globs in the generated BUILD.bazel file.
For example, here's the library rule generated for grpc:
The glob in the
srcs
attr does not match any of the files, as both the gem name and contents are possibly incorrect.In grpc's case, the path is
lib/ruby/2.7.0/gems/grpc-1.35.0-x86_64-linux/...
and does not contain a 'lib' directory.In google-protobuf's case, the path is
lib/ruby/2.7.0/gems/google-protobuf-3.14.0-x86_64-linux/...
and does contain a 'lib' directory.Therefore, when trying to
require 'grpc'
it cannot find any files:Context: rules-proto-grpc/rules_proto_grpc#65
The text was updated successfully, but these errors were encountered: