bazel-contrib / bazel-contrib/rules_ruby

Expose source files from an rb_gem as rb_library or java jars

Open
#293 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Starlark
Stars
50
Forks
22
Avg merge
9d 23h
Merged PRs (30d)
5

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](https://github.com/jruby/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.