Commit 1970393
committed
Fix unwanted rebuilds in xtask commands
Recently, `cargo xtask test` started doing a lot of rebuilding. Possibly this
started with cargo 1.85, but I'm not sure.
The behavior was: `cargo xtask test` builds `xtask` and all of its dependencies
in order to launch `xtask`. Then it would rebuild everything again to run the
test command. If you then ran `cargo xtask test` a second time, everything would
again be rebuilt. In other words, the build cache essentially wasn't working.
Fix by clearing all `CARGO` env vars in `fix_nested_cargo_env`.1 parent aecfa0a commit 1970393
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
223 | 231 | | |
224 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
225 | 241 | | |
226 | 242 | | |
227 | 243 | | |
| |||
0 commit comments