bazel-contrib/rules_ruby

Expose source files from an rb_gem as rb_library or java jars

開放

#293 建立於 2026年1月22日

 (1 則留言) (0 個反應) (0 位負責人)Starlark (20 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (50 顆星)
PR 合併指標
 (平均合併 13天 9小時) (30 天內合併 11 個 PR)

描述

Would like to be able to directly reference a specific source file included in an rb_gem installed in a bundle repo.

For example to use the warbler jar in a java based target elsewhere.

java_import(
    name = "WarblerJar",
    jars = [".gem/gems/warbler-2.0.4/lib/warbler_jar.jar"],
)

Right now you must reference a file in the file system outside of bazel and know its specific path. I'm guessing we'd need bundle install to run to unpack the .gem archive, and then generate rb_library targets and java targets based on the outputted file extensions after.

貢獻者指南