We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02b2b76 commit f74eabeCopy full SHA for f74eabe
src/cargo/core/workspace.rs
@@ -283,6 +283,10 @@ impl<'gctx> Workspace<'gctx> {
283
ws.member_ids.insert(id);
284
ws.default_members.push(ws.current_manifest.clone());
285
ws.set_resolve_behavior();
286
+ // The find_root function is used here to traverse the directory tree and locate the root of the workspace.
287
+ // Despite being ephemeral, we still need to validate all the manifests in the workspace,
288
+ // which is what `find_root` helps us achieve here.
289
+ ws.find_root(ws.current_manifest.clone().as_path())?;
290
Ok(ws)
291
}
292
0 commit comments