Commit bfe97b2
committed
[PM-29567] Fix dylint by putting the real dylint-link on PATH
cargo-dylint invokes dylint-link as rustc's linker, found by name on PATH.
Running it via `cargo bin cargo-dylint` fails: cargo-run-bin prepends a shim
directory to PATH, and the dylint-link shim re-runs `cargo bin dylint-link`,
which resolves the project root from the current directory. During linking the
cwd is inside support/lints or a dependency's source dir, none of which declare
[workspace.metadata.bin], so the shim fails with "No binaries configured".
Build the tools and invoke the cargo-dylint binary directly with the real
dylint-link binary on PATH (via an absolute path, so it resolves regardless of
which directory cargo-dylint links from). Build only the two tools dylint needs
rather than `cargo bin --install`, which builds every pinned tool including
some that don't compile on this toolchain (e.g. cross).1 parent e178b73 commit bfe97b2
1 file changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
104 | 129 | | |
105 | 130 | | |
106 | 131 | | |
| |||
0 commit comments