mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
test(registry): Ensure cache doesn't prevent schema errors
This commit is contained in:
parent
4412b0a332
commit
6c5d34cfd5
@ -3233,6 +3233,17 @@ fn unknown_index_version_error() {
|
||||
location searched: `dummy-registry` index (which is replacing registry `crates-io`)
|
||||
required by package `foo v0.1.0 ([ROOT]/foo)`
|
||||
|
||||
"#]])
|
||||
.run();
|
||||
p.cargo("generate-lockfile")
|
||||
.with_status(101)
|
||||
.with_stderr_data(str![[r#"
|
||||
[UPDATING] `dummy-registry` index
|
||||
[ERROR] failed to select a version for the requirement `bar = "^1.0"`
|
||||
version 1.0.1 requires a Cargo version that supports index version 4294967295
|
||||
location searched: `dummy-registry` index (which is replacing registry `crates-io`)
|
||||
required by package `foo v0.1.0 ([ROOT]/foo)`
|
||||
|
||||
"#]])
|
||||
.run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user