Commit 3d6e75c
committed
fix(layout): Put examples in their unit dir in new layout
Before, pre-uplifted examples were being written to
`{build-dir}/{profile}/examples/{name}-{hash}`.
Now they are being written to
`{build-dir}/{profile}/build/{pkgname}/{hash}/{name}-{hash}`.
This does not affect uplifted examples (they lack the `-{hash}`).
Pre-build-dir, these were placed in a "public" location but I don't see
a reason for that to be the case (otherwise, we'd need to switch them to
`{target-dir}/{profile}/examples/{name}-{hash}`).
In that case, I don't see a reason to treat examples as any different
than any other artifact and going in their unique build init directory.
Fixes #163021 parent bbb5c5b commit 3d6e75c
File tree
2 files changed
+3
-3
lines changed- src/cargo/core/compiler/build_runner
- tests/testsuite
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
| 399 | + | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments