Commit e87ff18
committed
[lib/prep.sh] Limit calls to
When checking for an installing plugins, there isn't a need to call
cargo for each plugin to check. While this is just-as-good as previous
behavior, it also limits any issues when calling a Cargo subcommand that
might fail.
Presently, there are times where a race exists and either `STDOUT` or
`STDERR` might disppear when Rustup (or potentially Cargo) is used in a
shell pipeline, leading to a program panic with `failed printing to
stdout: Broken pipe (os error 32)`. This change tries to minimize the
probability that this occurs until a more robust upstream fix has
landed.
References: rust-lang/rustup#1730
References: rust-lang/rustup#1765
Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>cargo install --list for plugins.1 parent b312a46 commit e87ff18
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| 486 | + | |
485 | 487 | | |
486 | | - | |
| 488 | + | |
487 | 489 | | |
488 | 490 | | |
489 | 491 | | |
| |||
0 commit comments