Commit ad6e464
Fix
When running `devbox update <pkg>`, packagesToInstallInStore() was
unconditionally adding every package to the install list in update mode.
This caused all packages to be re-installed with --refresh, not just the
ones the user requested.
Track which packages are being updated via a field on the Devbox struct
and only force-install those in packagesToInstallInStore(). Other packages
still go through the normal store-path check.
Fixes #2653
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>devbox update <pkg> installing all packages instead of just the target1 parent ea03d2d commit ad6e464
3 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
| 640 | + | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
669 | 678 | | |
670 | 679 | | |
671 | 680 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments