Skip to content

Commit 2e3a74c

Browse files
committed
test(pkgid): bad file URL suggestion
1 parent 1bbc056 commit 2e3a74c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/testsuite/pkgid.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ Did you mean one of these?
9393
9494
two-ver:0.1.0
9595
two-ver:0.2.0
96+
",
97+
)
98+
.run();
99+
100+
// Bad file URL.
101+
p.cargo("pkgid ./Cargo.toml")
102+
.with_status(101)
103+
.with_stderr(
104+
"\
105+
error: invalid package ID specification: `./Cargo.toml`
106+
107+
Caused by:
108+
package ID specification `./Cargo.toml` looks like a file path, maybe try file://[..]/Cargo.toml
96109
",
97110
)
98111
.run();

0 commit comments

Comments
 (0)