Skip to content

Commit

Permalink
Use --workspace when loading extern resources
Browse files Browse the repository at this point in the history
  • Loading branch information
chinedufn authored and Matthias-Fauconneau committed Feb 7, 2021
1 parent ed1809f commit 975975c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project_model/src/cargo_workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ pub(crate) fn load_extern_resources(
progress: &dyn Fn(String),
) -> Result<ExternResources> {
let mut cmd = Command::new(toolchain::cargo());
cmd.args(&["check", "--message-format=json", "--manifest-path"]).arg(cargo_toml);
cmd.args(&["check", "--workspace", "--message-format=json", "--manifest-path"]).arg(cargo_toml);

// --all-targets includes tests, benches and examples in addition to the
// default lib and bins. This is an independent concept from the --targets
Expand Down

0 comments on commit 975975c

Please sign in to comment.