-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Inconsistency with bundle update
(major vs minor/patch)
#4934
Comments
FWIW, I strongly disagree with My christmas wish is that One of the main reason against this was that it would "hard to do" or "hard to get right". With the new logic in place with If I can't get my christmas wish, I am still hoping for a way to do |
@marcandre that is my understanding of our actual plan for Bundler 2.0: make the logic of --minor and --patch the default. We're not sure if we'll manage to ship it in time for it to be your christmas present, though. 😆 |
OMG! Awesome! |
I think in conjunction with the desire for a Also added PR with your case => chrismo/bundler-cases#12 |
This case was failing to illustrate the desired effect, but that sort of goes against the grain here. Anyway - more comments with thoughts and how this could help play nice with the bug fix for rubygems/bundler#4934
ha - this may be all that's needed to fix this:
which makes perfect sense - |
Case will fail against 1.13.0, bug fix in rubygems/bundler#4977.
Case will fail against 1.13.0, bug fix in rubygems/bundler#4977.
Fix #4934. Make GVP _after_ eager unlock. When Definition creates the GemVersionPromoter, it needs to do so _after_ it's performed the eager_unlock so the GVP gets the correct list of unlocked gems. Prior to this fix, it had a stricter list of gems being updated with the new `--patch` or `--minor` options used with `bundle update` and in some cases would have inconsistent results when used without a conservative switch or the `--major` option. See #4934 for details.
Fix #4934. Make GVP _after_ eager unlock. When Definition creates the GemVersionPromoter, it needs to do so _after_ it's performed the eager_unlock so the GVP gets the correct list of unlocked gems. Prior to this fix, it had a stricter list of gems being updated with the new `--patch` or `--minor` options used with `bundle update` and in some cases would have inconsistent results when used without a conservative switch or the `--major` option. See #4934 for details.
Fix #4934. Make GVP _after_ eager unlock. When Definition creates the GemVersionPromoter, it needs to do so _after_ it's performed the eager_unlock so the GVP gets the correct list of unlocked gems. Prior to this fix, it had a stricter list of gems being updated with the new `--patch` or `--minor` options used with `bundle update` and in some cases would have inconsistent results when used without a conservative switch or the `--major` option. See #4934 for details.
Here's a test case aiming to illustrate the inconsistency with
bundle update foo
with different--major
/minor
/patch
. The only available gem versions are patches releases, so all three options should all behave the same but they don't for theminor
andpatch
options.I feel this inconsistency has to be bug. For sure, it makes it impossible to understand what is supposed to be going on.
Moved from chrismo/bundler-cases#6
The text was updated successfully, but these errors were encountered: