Commit a5c25f3
committed
fix(complete): Always check rustup for --target
clap-rs/clap#5733 removed the rustup proxy so that
`CARGO_COMPLETE=bash cargo +nightly` works
(with a side benefit of removing the proxy overhead).
As a downside, cargo no longer knows it is running within rustup, so we
aren't reading `--target` candidates from rustup.
This changes the code to always try rustup. It is likely a good enough
source, even if the user isn't currently using it.
The candidates should be about the same, just rustup hides some by
default.
Hiding just means it isn't shown by default but if only hidden
candidates match, then we show them.1 parent 397a180 commit a5c25f3
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
| 1124 | + | |
| 1125 | + | |
1128 | 1126 | | |
1129 | 1127 | | |
1130 | 1128 | | |
| |||
0 commit comments