message: Test that git install reads virtual manifest
diff: @@ -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();
  +}
  