ci: skip Gemfile.lock BUNDLED WITH on ruby-head#2952
Merged
Conversation
Released bundlers (up to 4.0.11) reference Pathname::SEPARATOR_PAT, which became a private constant on ruby-head, causing bundle install to crash with NameError. The fix (ruby/rubygems#9529) is on master but not yet released. Use bundler's "version system" config to skip the lockfile-pinned 4.0.1 and use ruby-head's bundled bundler instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
ruby-head(and theucrt/mswindev builds on Windows) withNameError: private constant Pathname::SEPARATOR_PAT referencedraised fromBundler::Source::Path#generate_bin.Pathname::SEPARATOR_PATbecame a private constant on ruby-head (4.1.0.dev). Every released bundler up to 4.0.11 still references it. BecauseGemfile.lockpinsBUNDLED WITH 4.0.1, the bundler 4.1.0.dev that ships with ruby-head downgrades itself to 4.0.1 before running and then crashes.Pathname#absolute?", merged 2026-05-07) — but it has not landed in any released bundler yet, so simply bumpingBUNDLED WITHwould not help.bundle config set --local version systemfor ruby-head / ucrt / mswin only. That tells bundler to use the system-installed bundler instead of the one pinned inGemfile.lock, avoiding the forced downgrade to 4.0.1. Stable Ruby versions are unaffected becauseGemfile.lockis untouched.Once a fixed bundler (4.0.12 or 4.1.0) is released, run
bundle update --bundlerto bumpBUNDLED WITHin bothGemfile.lockandsteep/Gemfile.lock, and revert these workaround steps.Test plan
Rubyworkflow:test (head, ...)jobs go greenRubyworkflow:C99_compile (head)goes greenRubyworkflow:clang_compile (head)goes greenRuby on Windowsworkflow:compile (ucrt)andcompile (mswin)go green3.2/3.3/3.4/4.0)🤖 Generated with Claude Code