Skip to content

Commit 77fd211

Browse files
committed
detect broken override
1 parent fffb47c commit 77fd211

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/prepare.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ fn run_command(cmd: Command) -> anyhow::Result<()> {
155155
|| line.contains("no matching package named")
156156
|| line.contains("no matching package found")
157157
|| line.contains("registry index was not found in any configuration:")
158+
|| line.contains("no matching package for override ")
158159
{
159160
missing_deps = true;
160161
} else if line.contains("failed to parse manifest at")

tests/buildtest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ test_prepare_error_stderr!(
310310
"registry index was not found in any configuration: `will-be-removed`"
311311
);
312312

313-
test_prepare_unknown_err!(
313+
test_prepare_error_stderr!(
314314
test_invalid_cargotoml_missing_override,
315315
"invalid-cargotoml-missing-override",
316316
MissingDependencies,

0 commit comments

Comments
 (0)