Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Don't warn about the running Bundler in default gem downgrades - #10051

Merged
hsbt merged 2 commits into
masterfrom
claude/pensive-dijkstra-e7b8a5
Nov 10, 2026
Merged

hsbt merged 2 commits into
masterfrom
claude/pensive-dijkstra-e7b8a5

Conversation

@hsbt

@hsbt hsbt commented Nov 10, 2026

Copy link
Copy Markdown
Member

Since #10026, bundle install lists bundler among the downgraded default gems whenever the running Bundler is older than the default one shipped with Ruby or installed by gem update --system. The resolved specs always include the running Bundler, so a lockfile with BUNDLED WITH 4.1.0 would warn on every install once a newer default Bundler ships, and users have no way to silence it.

This skips bundler in warn_on_default_gem_downgrades. Other default gem downgrades are still reported. #10026 already left Bundler downgrades out of scope.

Generated with Claude Code

hsbt and others added 2 commits November 11, 2026 07:17
The resolved specs always include the running Bundler, so a Bundler 4.1.x locked by BUNDLED WITH was reported as a downgrade on every install whenever Ruby or `gem update --system` shipped a newer default bundler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The running Bundler is not always the one pinned by BUNDLED WITH, for example without a lockfile or with `bundle _x_`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 0f7371c into master Nov 10, 2026
114 checks passed
@hsbt
hsbt deleted the claude/pensive-dijkstra-e7b8a5 branch November 10, 2026 23:50
@rhenium

rhenium commented Nov 11, 2026

Copy link
Copy Markdown
Member

I thought the Bundler entry would be harmless, but I missed the fact that gem update --system installs a newer Bundler version as a default gem. In that case, it is indeed annoying. Thanks for the catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants