Skip to content

Conversation

@deivid-rodriguez
Copy link
Contributor

What was the end-user or developer problem that led to this PR?

Bundler is not able to detect missing checksums for registry gems. If frozen mode is enabled, lockfile checksums are enabled, and a registry gem does not have a lockfile checksum, Bundler should refuse to install that gem.

What is your fix for the problem, implemented in this PR?

It's a bit tricky because Bundler does not currently generate checksums for git or path gems, so this strict mode should only apply to registry gems.

This PR adds a ChecksumStore#empty? method that we check when validating the lockfile, and makes sure it only applies to registry gems, not to git or path gems.

Fixes #8885.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/detect-empty-checksums branch from 290437a to 05199ae Compare August 11, 2025 18:58
@deivid-rodriguez deivid-rodriguez merged commit 3a42889 into master Aug 11, 2025
76 checks passed
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/detect-empty-checksums branch August 11, 2025 20:27
deivid-rodriguez added a commit that referenced this pull request Sep 4, 2025
…checksums

Raise an error in frozen mode if some registry gems have empty checksums

(cherry picked from commit 3a42889)
deivid-rodriguez added a commit that referenced this pull request Sep 9, 2025
…checksums

Raise an error in frozen mode if some registry gems have empty checksums

(cherry picked from commit 3a42889)
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.

Gemfile.lock with partially missing checksums does not error in frozen mode

2 participants