Add fake ruby-build wrapper for jdx/ruby#1112
Merged
Merged
Conversation
Trunk's ruby runtime installer downloads ruby-build and calls bin/ruby-build <version> <install-path> to compile Ruby from source. This tarball provides a drop-in replacement that instead downloads a pre-built Ruby binary from jdx/ruby. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
😎 Merged successfully - details. |
3 tasks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1112 +/- ##
==========================================
+ Coverage 82.12% 82.37% +0.24%
==========================================
Files 69 69
Lines 15243 15243
==========================================
+ Hits 12519 12556 +37
+ Misses 2724 2687 -37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TylerJang27
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Trunk's ruby runtime installer works by downloading a copy of ruby-build and calling:
This compiles Ruby from source, which is slow and requires a full build toolchain.
This PR adds
.trunk/ruby-build.tar.gz— a tarball containing a fakebin/ruby-buildscript that intercepts that call and downloads a prebuilt, portable Ruby binary from mise (via the jdx/ruby releases) instead of compiling from source. This means Ruby installs in seconds rather than minutes, with no compiler required.The script:
The tarball is referenced by the trunk.yaml changes in the follow-up PR #1113.
Test plan
trunk tools install --verboseshowsruby 4.0.5installed successfully~/.cache/trunk/tools/ruby/4.0.5/bin/rubyexists after install🤖 Generated with Claude Code