mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Help with [patch.crates.io]
This commit is contained in:
parent
eaee77dc15
commit
b07c611bf1
@ -1920,8 +1920,13 @@ fn patch(
|
|||||||
.or_else(|_| toml_url.into_url())
|
.or_else(|_| toml_url.into_url())
|
||||||
.with_context(|| {
|
.with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"[patch] entry `{}` should be a URL or registry name",
|
"[patch] entry `{}` should be a URL or registry name{}",
|
||||||
toml_url
|
toml_url,
|
||||||
|
if toml_url == "crates" {
|
||||||
|
"\nFor crates.io, use [patch.crates-io] (with a dash)"
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
)
|
)
|
||||||
})?,
|
})?,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user