Skip to content

Commit 9e1076b

Browse files
committed
detect missing patch target as missing dependency
1 parent 58cb885 commit 9e1076b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/prepare.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ fn run_command(cmd: Command) -> anyhow::Result<()> {
156156
|| line.contains("no matching package found")
157157
|| line.contains("registry index was not found in any configuration:")
158158
|| line.contains("no matching package for override ")
159+
|| (line.contains("The patch location ")
160+
&& line.contains(" does not appear to contain any packages matching the name "))
159161
{
160162
missing_deps = true;
161163
} else if line.contains("failed to parse manifest at")

0 commit comments

Comments
 (0)