Skip to content

feat: fetch jars for gem dependencies#327

Open
p0deje wants to merge 1 commit intomainfrom
feat/jars
Open

feat: fetch jars for gem dependencies#327
p0deje wants to merge 1 commit intomainfrom
feat/jars

Conversation

@p0deje
Copy link
Member

@p0deje p0deje commented Feb 3, 2026

This PR automatically fetches gem JARs during rb_bundle_fetch, then exposes them at runtime via the JARS_HOME environment variable. This mostly mimics what JRuby is doing during bundle install, but we cannot do so since rb_bundle_install is an action and might not have network access. Instead, all the downloading should happen inside rb_bundle_fetch.

Fixes #218.

@noahkawasakigoogle Any chance you might be able to test this on your repo?

@p0deje p0deje force-pushed the feat/jars branch 3 times, most recently from b026767 to 622b92f Compare February 4, 2026 15:47
@alexeagle
Copy link
Collaborator

@p0deje do you think this could mean https://github.com/bazel-contrib/rules_ruby/blob/main/examples/proto/.ruby-version could switch to jruby also?

@p0deje
Copy link
Member Author

p0deje commented Feb 8, 2026

@alexeagle Not sure, what was the problem with using JRuby on protobuf example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rb_bundle_fetch not building extra gemspec jars needed by certain gems

2 participants