Repository navigation
vm_check.sh takes the reference ruby through tools/ref_ruby.sh (#296's review) - #298
Merged
Merged
Conversation
tools/ref_ruby.sh: rbenv's build of the pinned version when PATH's ruby is another, PATH's when it is that version (CI's setup-ruby), and a refusal otherwise -- not whatever ruby PATH has.
284km
commented
Nov 25, 2026
284km
left a comment
Owner
Author
There was a problem hiding this comment.
Reviewed a472fe5. No Critical / Major / Minor findings. vm_check.sh now takes the reference ruby the way every gate does, by sourcing tools/ref_ruby.sh: rbenv's 4.0.10 when PATH's ruby is another version, PATH's ruby when it is 4.0.10 (CI's setup-ruby), and exit 2 otherwise, with the gem-dir checks of #224/#241. RUBY= still overrides. The author checked three environments. Suggestion: after sourcing, RUBY="$REF_RUBY_BIN" would use the real binary rather than rbenv's shim (command -v ruby); ref_ruby.sh notes that the shim adds RBENV_* and RUBYLIB to the child's ENV, which matters if a snippet ever compares ENV. git merge-tree against main: clean. No mere-pr-review-watch inline comments. Merging.
This was referenced Nov 25, 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.
#296's review suggested this: when the rbenv build was not there,
vm_check.shtook whatever ruby was on PATH and did not check its version. It now takes the reference ruby as the other gates do, throughtools/ref_ruby.sh: rbenv's build of the pinned version when PATH's ruby is another, PATH's ruby when it is that version (CI's setup-ruby,REF_RUBY_VERSION4.0.10), and a refusal otherwise.RUBY=still names one outright.ci.ymlis not changed.Checked
On main, with an empty environment (
env -i) but forHOMEandPATH:/usr/bin:/bin(macOS's ruby 2.6)vm_check: 245/245/usr/bin:/binbinfirst, as CI'svm_check: 245/245🤖 Generated with Claude Code