Skip to content

[pull] master from ruby:master#1209

Merged
pull[bot] merged 1 commit into
turkdevops:masterfrom
ruby:master
Jul 13, 2026
Merged

[pull] master from ruby:master#1209
pull[bot] merged 1 commit into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Jul 13, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…'t cached

`bundler_checksum` recomputed the Bundler self-checksum from the locally
cached gem on every lockfile write and emitted nothing when that gem was
absent. As a result an existing `bundler (x.y.z) sha256=...` entry was
silently dropped whenever the lockfile was rewritten on a machine that
never downloaded the Bundler gem (e.g. a fresh checkout or CI), making the
entry flicker in and out depending on the environment.

Fall back to the checksum already locked in the lockfile (parsed into the
metadata source's checksum store and merged during source convergence) when
a fresh one can't be computed, so the entry stays consistent across
environments. A cached gem whose digest disagrees with the locked value
still raises ChecksumMismatchError.

Guard that fallback so it only applies when the `BUNDLED WITH` version isn't
changing (`locked_gems.bundler_version == bundler_version_to_lock`). When the
locked Bundler version is being bumped and we can't compute a fresh checksum
(the gem isn't cached), drop the entry instead of keeping it. Otherwise we'd
lock a `bundler (<old version>) sha256=...` checksum that no longer matches
the new `BUNDLED WITH` version, e.g. after `bundle lock --update --bundler`
rewrites the section without switching the running Bundler.

The `.dev` and SKIP_BUNDLER_CHECKSUM opt-outs are unchanged: they remain
hard 'do not record' signals used by Bundler/RubyGems' own development and
release tasks.

ruby/rubygems@bdfd8d4f55
@pull pull Bot locked and limited conversation to collaborators Jul 13, 2026
@pull pull Bot added the ⤵️ pull label Jul 13, 2026
@pull pull Bot merged commit cb2ea29 into turkdevops:master Jul 13, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant