Skip to content

Additional fixes and tweaks for the skinny launcher #49

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

Merged
merged 4 commits into from
Apr 4, 2025

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