Fix security updates in Bundler subdependencies #10249
Merged
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 are you trying to accomplish?
I noticed that #9923 seems to have caused an issue where security updates in Bundler subdependencies no longer succeed.
The new issue seems much worse than the original enhancement (a better error message in an edge case).
So I'm trying to fix it.
Closes #10251.
Anything you want to highlight for special attention from reviewers?
I think ideally we'd add support in upstream Bundler for things like
bundle lock --update foo=<version>
, since right now Bundler only has the capability of updating dependencies to their latest version.But that's a big feature, so for now I used an approach that creates a
Bundler::Definition
from the Gemfile but adds an extra top level dependency to force the update.How will you know you've accomplished your goal?
Hopefully the new smoke test I added to cover this passes.
Checklist