Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround jruby#7799 by updating rubygems for JRuby 9.2.x #2246

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,11 @@ build_package_jruby() {

install_jruby_launcher() {
cd "${PREFIX_PATH}/bin"
# workaround for https://github.com/jruby/jruby/issues/7799
local jruby_version
jruby_version="$(./ruby -e 'puts JRUBY_VERSION' 2>/dev/null)"
[[ $jruby_version != "9.2."* ]] ||
./ruby gem update -q --silent --system 3.3.26 --no-document --no-post-install-message >&4 2>&1
{ ./ruby gem install jruby-launcher
} >&4 2>&1
}
Expand Down
1 change: 1 addition & 0 deletions test/build.bats
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ DEF
assert_success

assert_build_log <<OUT
jruby -e puts JRUBY_VERSION
jruby gem install jruby-launcher
OUT

Expand Down