bazelruby / rules_ruby

Formerly canonical rules for ruby, that are about 2-3 years behind current Bazel. If they work for you great, but if not — please try the new rules ruby by Alex Radionov: https://github.com/bazel-contrib/rules_ruby
Apache License 2.0
99 stars 37 forks source link

gem from the .zip archive? #83

Open surendarchandra opened 3 years ago

surendarchandra commented 3 years ago

Thanks for the effort In building this project. I added the ruby_gem rule and it generates a .zip file in the cache directory. Is there a way to create a regular .gem file? Not sure how to use the .zip file even though it is gem compatible? Thanks

kigster commented 3 years ago

Hm does it really generate zip file?

A gem file is just a tar archive containing (at least) a gemspec file. You can install a gem using the gem file with gem install --local file.gem

Have you tried unpacking the zip file? Could it contain the .gem inside?

cdc97 commented 3 years ago

The documentation (front page README) says "Used to generate a zipped gem containing its srcs, dependencies and a gemspec." I'm currently seeing a zip file generated as well rather than a file with a .gem extension

kigster commented 3 years ago

I'll take a look