Test that git install reads virtual manifest

This commit is contained in:
Christian Duerr 2020-01-06 22:36:33 +01:00
parent a08fe088b3
commit ae8dee513d
No known key found for this signature in database
GPG key ID: 85CDAE3C164BA7B4

View file

@ -1422,3 +1422,29 @@ fn install_version_req() {
.with_stderr_contains("[INSTALLING] foo v0.0.3")
.run();
}
#[cargo_test]
fn git_install_reads_workspace_manifest() {
let p = git::repo(&paths::root().join("foo"))
.file(
"Cargo.toml",
r#"
[workspace]
members = ["bin1"]
[profile.release]
incremental = 3
"#,
)
.file("bin1/Cargo.toml", &basic_manifest("bin1", "0.1.0"))
.file(
"bin1/src/main.rs",
r#"fn main() { println!("Hello, world!"); }"#,
)
.build();
cargo_process(&format!("install --git {}", p.url().to_string()))
.with_status(101)
.with_stderr_contains(" invalid type: integer `3`[..]")
.run();
}