mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
Test that git install reads virtual manifest
This commit is contained in:
parent
a08fe088b3
commit
ae8dee513d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue