Repository navigation
Conversation
The cooldown only filters versions when Bundler resolves, and versions already in the lockfile are exempt, so a version that is too new stays in the lockfile once it gets there. The new subcommand reads the lockfile as written, fetches the publish time of each locked version, and exits 1 when one is inside the cooldown window, so CI can catch it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jjb
marked this pull request as ready for review
October 30, 2026 20:15
Member
|
I don't want to add and maintain another subcommand for this in Bundler itself, so I'm closing this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was the end-user or developer problem that led to this PR?
The cooldown feature currently comes into action when a gem is being installed or updated, but there is no way to "check" a lockfile.
It would be nice to check a lockfile for cooldown violations, in particular in CI.
What is your fix for the problem, implemented in this PR?
this PR implements
bundle doctor cooldown, which reads the lockfile and fetches the publish time of each locked gem. It compares each publish time with the cooldown for the source of the gem. When a locked gem is inside the cooldown window, the command prints the gem and exits 1.Behavior:
bundle install. Seecooldownin bundle-config(1).I chose
bundle doctorfor the check.bundle doctoralready checks the bundle for problems and exits 1 when it finds one. So the check goes there, next todiagnoseandssl. here are other places it could live instead:bundle check: this command works offline. A cooldown check adds network access to it.bundle lock: this command writes the lockfile. A read-only mode does not fit it.Make sure the following tasks are checked