Skip to content

Commit

Permalink
Merge #7264
Browse files Browse the repository at this point in the history
7264: Use --workspace when loading extern resources r=edwin0cheng a=chinedufn

#5040 (comment)

Co-authored-by: Chinedu Francis Nwafili <[email protected]>
  • Loading branch information
bors[bot] and chinedufn authored Jan 14, 2021
2 parents d76143d + 47c5ec4 commit e732b94
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 e732b94

Please sign in to comment.