You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gem update fails on 4.0.9: minitest binstub not patched for RubyGems overwrite detection #80
gem update on Ruby 4.0.9 (ruby-4.0.9.macos.tar.gz), installed via mise 2026.11.14 on macOS 27.2.1 arm64.
What happened
minitest's executable "minitest" conflicts with .../installs/ruby/4.0.9/bin/minitest
Overwrite the executable? [yN]
ERROR: Error installing minitest:
"minitest" from minitest conflicts with .../installs/ruby/4.0.9/bin/minitest
minitest stays at the bundled 6.0.0. I expected it to update to 6.1.0. gem update rake on the same install works.
PRs are limited to collaborators, so the fix is on my fork: ArloL@63e57f3
Match any Ruby shebang (^#!.*ruby.*\n) when adding the RubyGems marker.
Add a runtime check that reinstalls every bundled gem with an executable from its cached .gem (offline). A binstub RubyGems won't overwrite now fails the build.
On the 4.0.9 macOS release tarball, the new check fails at minitest on the released binstubs and passes after the fix. With the marker stripped from all stubs (the #6 bug), it fails at bootsnap.
I hit this during a routine gem update. Claude Code helped me trace the cause and write the fix.
Activity
Regenerate binstubs before gem update
fix: patch binstubs with any Ruby shebang for RubyGems overwrite dete…
github-actions commentedon Nov 27, 2026
Fixed in 4.0.9-2 by #82.
github-actions commentedon Nov 27, 2026
Fixed in 4.0.10-2 by #82.
github-actions commentedon Nov 27, 2026
Fixed in 4.0.8-2 by #82.
github-actions commentedon Nov 27, 2026
Fixed in 4.0.7-3 by #82.
github-actions commentedon Nov 27, 2026
Fixed in 4.0.5-5 by #82.
github-actions commentedon Nov 27, 2026
Fixed in 4.0.4-6 by #82.