Repository navigation
Commit 92836db
committed
fix(trim-paths): sanitize absolute source paths in fingerprint
With `trim-paths`,
rustc only sees remapped source paths.
There is no reason that fingerprint still tracks original paths.
This sanitizes absolute paths in Cargo fingerprint
by applying the same remap rules with trim-paths.
Without this,
moving `CARGO_HOME` would cause rebuilds,
even the compiled artifacts are byte-identical.
One caveat is that because the "object" scope doesn't remap diagonstics,
if diagnostics were also cached,
a replay may show the "wrong" cached paths.
The "all" scope doesn't have this issue btw.1 parent c5d1e7f commit 92836db
3 files changed
Lines changed: 55 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
396 | 399 | | |
397 | 400 | | |
398 | 401 | | |
| 402 | + | |
399 | 403 | | |
400 | 404 | | |
401 | 405 | | |
| |||
1705 | 1709 | | |
1706 | 1710 | | |
1707 | 1711 | | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
1708 | 1736 | | |
1709 | 1737 | | |
1710 | 1738 | | |
1711 | 1739 | | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
| 1740 | + | |
1715 | 1741 | | |
1716 | 1742 | | |
1717 | 1743 | | |
| |||
| 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 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
108 | 125 | | |
109 | 126 | | |
110 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | | - | |
2216 | | - | |
2217 | | - | |
2218 | | - | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
2223 | 2218 | | |
2224 | | - | |
2225 | 2219 | | |
2226 | 2220 | | |
2227 | 2221 | | |
| |||
2245 | 2239 | | |
2246 | 2240 | | |
2247 | 2241 | | |
2248 | | - | |
2249 | | - | |
2250 | | - | |
2251 | | - | |
2252 | | - | |
2253 | | - | |
2254 | | - | |
2255 | | - | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2256 | 2245 | | |
2257 | | - | |
2258 | 2246 | | |
2259 | 2247 | | |
2260 | 2248 | | |
| |||
2305 | 2293 | | |
2306 | 2294 | | |
2307 | 2295 | | |
2308 | | - | |
2309 | | - | |
| 2296 | + | |
2310 | 2297 | | |
2311 | | - | |
| 2298 | + | |
2312 | 2299 | | |
2313 | 2300 | | |
2314 | 2301 | | |
| |||
0 commit comments