Commit c6b4a30
committed
crate_universe: move build-script dep to extra_deps
A crate with a build script depends on its own `build_script_build` target. That
edge was stored in `common_attrs.deps`, which `Context::workspace_member_deps()`
collects to emit crate-hub aliases — so a library crate with a build script got a
dead crate-hub alias for itself.
Move it to `common_attrs.extra_deps`, which `workspace_member_deps()` does not
read, so the self-reference no longer yields an alias. `extra_deps` holds resolved
labels, so the edge becomes a relative `:build_script_build` (same target, same
package).
Fixes #4089.1 parent fb01b69 commit c6b4a30
2 files changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 500 | + | |
| 501 | + | |
509 | 502 | | |
510 | 503 | | |
511 | 504 | | |
| |||
0 commit comments