Skip to content

Commit fd0460e

Browse files
authored
Merge pull request #2560 from rbenv/jruby-9.3
Fix regression in JRuby 9.3
2 parents fd0f332 + 986c1e3 commit fd0460e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/ruby-build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,12 @@ install_jruby_launcher() {
889889
# workaround for https://github.com/jruby/jruby/issues/7799
890890
[[ $1 != "jruby-9.2."* ]] ||
891891
capture_command ./ruby gem update -q --silent --system 3.3.26 --no-document --no-post-install-message
892-
capture_command ./ruby gem install jruby-launcher --no-document
892+
if [[ $1 == "jruby-9.3."* ]]; then
893+
# workaround for https://github.com/rbenv/ruby-build/issues/2550
894+
capture_command ./ruby gem install jruby-launcher --version '<2' --no-document
895+
else
896+
capture_command ./ruby gem install jruby-launcher --no-document
897+
fi
893898
}
894899

895900
fix_jruby_shebangs() {

0 commit comments

Comments
 (0)