Commit bcc287f
[rubygems/rubygems] Fix
If upgrading `foo` needs an indirect dependency to be downgraded,
Bundler would not be able to upgrade foo.
This is because when calculating the latest resolvable version of foo,
Bundler was still adding lower bound requirements on the locked versions
of all dependencies to avoid downgrades, effectively pinning foo to a
version older than the latest.
To fix this, instead of creating a second "unlocked" definition to
figure out the latest resolvable version, create a second unlocked
resolver, and DO NOT add lower bound requirements to it.
ruby/rubygems@00cc0ecc69bundle update foo not upgrading foo to latest in a specific case1 parent 8136039 commit bcc287f
File tree
2 files changed
+63
-17
lines changed- lib/bundler
- spec/bundler/commands
2 files changed
+63
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | 495 | | |
498 | 496 | | |
499 | 497 | | |
| |||
614 | 612 | | |
615 | 613 | | |
616 | 614 | | |
617 | | - | |
| 615 | + | |
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
| |||
632 | 630 | | |
633 | 631 | | |
634 | 632 | | |
635 | | - | |
636 | | - | |
| 633 | + | |
637 | 634 | | |
638 | 635 | | |
639 | 636 | | |
| |||
1136 | 1133 | | |
1137 | 1134 | | |
1138 | 1135 | | |
1139 | | - | |
| 1136 | + | |
1140 | 1137 | | |
1141 | 1138 | | |
1142 | 1139 | | |
1143 | 1140 | | |
1144 | 1141 | | |
1145 | 1142 | | |
1146 | 1143 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | 1144 | | |
1159 | 1145 | | |
1160 | 1146 | | |
| |||
1173 | 1159 | | |
1174 | 1160 | | |
1175 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1176 | 1179 | | |
1177 | 1180 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
448 | 491 | | |
449 | 492 | | |
450 | 493 | | |
| |||
0 commit comments