fe011509b6 (master): [ruby/rubygems] Don't mask install errors when no Gemfile can be located

0 views
Skip to first unread message

Hiroshi SHIBATA

unread,
3:29 AM (9 hours ago) 3:29 AM
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-08-04 06:01:55 +0000 (Tue, 04 Aug 2026)

New Revision: fe011509b6

https://github.com/ruby/ruby/commit/fe011509b6

Log:
[ruby/rubygems] Don't mask install errors when no Gemfile can be located

require_tree_for_spec calls SharedHelpers.default_gemfile to build the
"In Gemfile:" header of the error report. When BUNDLE_GEMFILE is unset
and no Gemfile is findable from the current directory, that raises
GemfileNotFound from inside the error-reporting path, hiding the
original install errors behind "Could not locate Gemfile". Fall back to
a generic header so the real errors always surface.

https://github.com/ruby/rubygems/commit/5c40e06170

Co-Authored-By: Claude Fable 5 <nor...@anthropic.com>

Modified files:
lib/bundler/installer/parallel_installer.rb
spec/bundler/bundler/installer/parallel_installer_spec.rb
Reply all
Reply to author
Forward
0 new messages