mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Add more details when installing git repository errors
This commit is contained in:
parent
44456677b5
commit
5e86dd455d
@ -612,7 +612,9 @@ where
|
|||||||
fn multi_err(kind: &str, mut pkgs: Vec<&Package>) -> String {
|
fn multi_err(kind: &str, mut pkgs: Vec<&Package>) -> String {
|
||||||
pkgs.sort_unstable_by_key(|a| a.name());
|
pkgs.sort_unstable_by_key(|a| a.name());
|
||||||
format!(
|
format!(
|
||||||
"multiple packages with {} found: {}",
|
"multiple packages with {} found: {}. When installing a git repository, \
|
||||||
|
cargo will always search the entire repo for any Cargo.toml. \
|
||||||
|
Please specify which to install.",
|
||||||
kind,
|
kind,
|
||||||
pkgs.iter()
|
pkgs.iter()
|
||||||
.map(|p| p.name().as_str())
|
.map(|p| p.name().as_str())
|
||||||
|
@ -414,7 +414,9 @@ fn multiple_crates_error() {
|
|||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[UPDATING] git repository [..]
|
[UPDATING] git repository [..]
|
||||||
[ERROR] multiple packages with binaries found: bar, foo
|
[ERROR] multiple packages with binaries found: bar, foo. \
|
||||||
|
When installing a git repository, cargo will always search the entire repo for any Cargo.toml. \
|
||||||
|
Please specify which to install.
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
.run();
|
.run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user