Skip to content

Commit

Permalink
Help with [patch.crates.io]
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Oct 17, 2024
1 parent eaee77d commit b07c611
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1920,8 +1920,13 @@ fn patch(
.or_else(|_| toml_url.into_url())
.with_context(|| {
format!(
"[patch] entry `{}` should be a URL or registry name",
toml_url
"[patch] entry `{}` should be a URL or registry name{}",
toml_url,
if toml_url == "crates" {
"\nFor crates.io, use [patch.crates-io] (with a dash)"
} else {
""
}
)
})?,
};
Expand Down

0 comments on commit b07c611

Please sign in to comment.