Repository navigation
Commit fdd2b60
committed
fix(config)!: store override paths as given
`rustup override set` canonicalized the directory before storing it, so
`settings.toml` could end up with a path the user never typed: `--path`
on a symlink recorded its target, and a relative `--path` to a directory
that did not exist yet was recorded verbatim and could never match.
The current directory is now stored as rustup sees it, and `--path` is
only made absolute, relative to that directory. Since overrides are
matched by the directory a stored path leads to, entries written by
earlier versions keep working, and one set on a symlink applies to its
target as well.1 parent 2a04511 commit fdd2b60
3 files changed
Lines changed: 22 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
1750 | 1750 | | |
1751 | 1751 | | |
1752 | 1752 | | |
1753 | | - | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1754 | 1759 | | |
1755 | 1760 | | |
1756 | 1761 | | |
| |||
1774 | 1779 | | |
1775 | 1780 | | |
1776 | 1781 | | |
1777 | | - | |
| 1782 | + | |
1778 | 1783 | | |
1779 | 1784 | | |
1780 | 1785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 108 | | |
117 | | - | |
| 109 | + | |
118 | 110 | | |
119 | 111 | | |
120 | 112 | | |
| |||
128 | 120 | | |
129 | 121 | | |
130 | 122 | | |
131 | | - | |
| 123 | + | |
132 | 124 | | |
133 | 125 | | |
134 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | 516 | | |
524 | 517 | | |
525 | 518 | | |
526 | 519 | | |
527 | 520 | | |
528 | 521 | | |
529 | 522 | | |
530 | | - | |
| 523 | + | |
531 | 524 | | |
532 | 525 | | |
533 | 526 | | |
| |||
550 | 543 | | |
551 | 544 | | |
552 | 545 | | |
553 | | - | |
| 546 | + | |
554 | 547 | | |
555 | 548 | | |
556 | 549 | | |
557 | 550 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | 551 | | |
564 | 552 | | |
565 | 553 | | |
566 | 554 | | |
567 | | - | |
| 555 | + | |
568 | 556 | | |
569 | 557 | | |
570 | | - | |
| 558 | + | |
571 | 559 | | |
572 | 560 | | |
573 | 561 | | |
| |||
765 | 753 | | |
766 | 754 | | |
767 | 755 | | |
768 | | - | |
| 756 | + | |
| 757 | + | |
769 | 758 | | |
770 | 759 | | |
771 | 760 | | |
772 | 761 | | |
773 | 762 | | |
774 | 763 | | |
775 | | - | |
| 764 | + | |
776 | 765 | | |
777 | 766 | | |
778 | 767 | | |
| |||
801 | 790 | | |
802 | 791 | | |
803 | 792 | | |
804 | | - | |
| 793 | + | |
| 794 | + | |
805 | 795 | | |
806 | 796 | | |
807 | 797 | | |
| 798 | + | |
808 | 799 | | |
809 | 800 | | |
810 | | - | |
| 801 | + | |
811 | 802 | | |
812 | 803 | | |
813 | 804 | | |
| |||
824 | 815 | | |
825 | 816 | | |
826 | 817 | | |
827 | | - | |
| 818 | + | |
828 | 819 | | |
829 | 820 | | |
830 | 821 | | |
| |||
0 commit comments