Skip to content

Don't mask install errors when no Gemfile can be located - #9757

Merged
hsbt merged 1 commit into
masterfrom
claude/hungry-boyd-f12f92
Aug 4, 2026
Merged

Don't mask install errors when no Gemfile can be located#9757
hsbt merged 1 commit into
masterfrom
claude/hungry-boyd-f12f92

Conversation

@hsbt

@hsbt hsbt commented Aug 4, 2026

Copy link
Copy Markdown
Member

ParallelInstaller#require_tree_for_spec calls SharedHelpers.default_gemfile to build the In Gemfile: header of the install error report. When BUNDLE_GEMFILE is unset and no Gemfile is findable from the current directory, for example when Bundler is used as a library, this raises GemfileNotFound from inside the error-reporting path and the original install errors get replaced by "Could not locate Gemfile". Fall back to a generic header so the real errors always surface.

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.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 46dd561 into master Aug 4, 2026
110 checks passed
@hsbt
hsbt deleted the claude/hungry-boyd-f12f92 branch August 4, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant