mirror of
https://github.com/rust-lang/cargo
synced 2024-08-27 11:19:23 +00:00
confirm that it is not a bug at resolver level
This commit is contained in:
parent
61e592788c
commit
8ce0d02971
|
@ -1458,6 +1458,31 @@ fn conflict_store_more_then_one_match() {
|
|||
let _ = resolve_and_validated(vec![dep("nA")], ®, None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bad_lockfile_from_8249() {
|
||||
let input = vec![
|
||||
pkg!(("a-sys", "0.2.0")),
|
||||
pkg!(("a-sys", "0.1.0")),
|
||||
pkg!(("b", "0.1.0") => [
|
||||
dep_req("a-sys", "0.1"), // should be optional: true, but not deeded for now
|
||||
]),
|
||||
pkg!(("c", "1.0.0") => [
|
||||
dep_req("b", "=0.1.0"),
|
||||
]),
|
||||
pkg!("foo" => [
|
||||
dep_req("a-sys", "=0.2.0"),
|
||||
{
|
||||
let mut b = dep_req("b", "=0.1.0");
|
||||
b.set_features(vec!["a-sys"]);
|
||||
b
|
||||
},
|
||||
dep_req("c", "=1.0.0"),
|
||||
]),
|
||||
];
|
||||
let reg = registry(input);
|
||||
let _ = resolve_and_validated(vec![dep("foo")], ®, None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cyclic_good_error_message() {
|
||||
let input = vec![
|
||||
|
|
Loading…
Reference in a new issue