I’m unable to install some gems in the plugin, for e.g.
google-protobuf. This gem is dependency for
Here’s a plugin trying to install it. https://github.com/fzngagan/gem-issue
gem install google-protobuf -v 3.13.0 -i /Users/faiz/discenv/discourse/plugins/gem-issue/gems/2.6.3 --no-document --ignore-dependencies --no-user-install Successfully installed google-protobuf-3.13.0-universal-darwin 1 gem installed You are specifying the gem google-protobuf in /Users/faiz/discenv/discourse/plugins/gem-issue/plugin.rb, however it does not exist! Looked for: /Users/faiz/discenv/discourse/plugins/gem-issue/gems/2.6.3/specifications/google-protobuf-3.13.0.gemspec
The reason for this is that the
.gemspec file’s name doesn’t match the
spec_file's name assumed in the code here.
IMO, this would happen probably only when using platform-specific gems as the platform name gets added to the gem name if its platform dependent. This is described here. Specification Reference - RubyGems Guides