Commit 81f119d
committed
fix(package): Fixed inconsistent build cache behavior during package verify
When running `cargo package` the verify the build cache
(target-dir/build-dir) will not be used and all dependencies will be
recompiled.
This is inconsistent as setting target dir (via `CARGO_TARGET_DIR` for
example) will cause `cargo package` to reuse the build cache.
This commit changes the default behavior to always use the build cache,
matching the behavior of having target-dir set.1 parent 84e4277 commit 81f119d
File tree
4 files changed
+6
-10
lines changed- src/cargo/ops/cargo_package
- tests/testsuite
4 files changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | | - | |
| 1831 | + | |
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| |||
1850 | 1850 | | |
1851 | 1851 | | |
1852 | 1852 | | |
1853 | | - | |
| 1853 | + | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | | - | |
1863 | 1862 | | |
1864 | 1863 | | |
1865 | 1864 | | |
| |||
5745 | 5744 | | |
5746 | 5745 | | |
5747 | 5746 | | |
5748 | | - | |
5749 | 5747 | | |
5750 | 5748 | | |
5751 | 5749 | | |
| |||
6654 | 6652 | | |
6655 | 6653 | | |
6656 | 6654 | | |
6657 | | - | |
6658 | 6655 | | |
6659 | 6656 | | |
6660 | 6657 | | |
| |||
7037 | 7034 | | |
7038 | 7035 | | |
7039 | 7036 | | |
7040 | | - | |
7041 | 7037 | | |
7042 | 7038 | | |
7043 | 7039 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
1344 | | - | |
1345 | 1344 | | |
1346 | 1345 | | |
1347 | 1346 | | |
| |||
3746 | 3745 | | |
3747 | 3746 | | |
3748 | 3747 | | |
3749 | | - | |
3750 | 3748 | | |
3751 | 3749 | | |
3752 | 3750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | 566 | | |
568 | 567 | | |
569 | 568 | | |
| |||
0 commit comments