bazel-contrib/rules_ruby

Expose source files from an rb_gem as rb_library or java jars

Ouverte

#293 ouverte le 22 janv. 2026

 (1 commentaire) (0 réaction) (0 personne assignée)Starlark (20 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (50 étoiles)
Métriques de merge PR
 (Merge moyen 13j 9h) (11 PRs mergées en 30 j)

Description

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.

Guide contributeur