Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Apr 3, 2025

In #48 we introduced a new "skinny" launcher for unix platforms that just launches the shipped bin/jruby.sh in JRuby, to ensure it always has the latest launcher logic.

Unfortunately, due to issues reported in #48 (comment), we need to check first if the jruby.sh file exists and either warn or fail to install until the host JRuby install has been fixed.

This PR also fixes CI to run properly on the skinny launcher... i.e. not run any of the specs for old launcher's features.

headius added 4 commits April 3, 2025 16:51
This file was added to switch JRuby's RubyGems back to using
normal shebang lines (rather than env shebangs needed for the
shell script) but had the effect of making that JRuby install need
a native launcher permanently. Rather than switching off env
shebangs, we leave them as is so the native launcher and shell
launcher can be interchangeable.
The new skinny launcher depends on jruby.sh being in the same bin
dir, but at least one installer (ruby-build) deletes it during
initial setup. This patch includes jruby.sh in the gem and copies
it into JRuby's bin dir if it does not already exist.

See rbenv/ruby-build#2517
@headius headius merged commit eeebfbf into jruby:master Apr 4, 2025
2 checks passed
@headius headius deleted the skinny_fixes branch April 4, 2025 19:06
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.

1 participant