We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9826222 commit 29ef271Copy full SHA for 29ef271
src/cargo/core/workspace.rs
@@ -198,7 +198,9 @@ impl<'cfg> Workspace<'cfg> {
198
target_dir: Option<Filesystem>,
199
require_optional_deps: bool,
200
) -> CargoResult<Workspace<'cfg>> {
201
- let mut ws = Workspace::new_default(package.manifest_path().to_path_buf(), config);
+ let manifest_path = package.manifest_path();
202
+ let mut ws = Workspace::new_default(manifest_path.to_path_buf(), config);
203
+ ws.root_manifest = ws.find_root(&manifest_path)?;
204
ws.is_ephemeral = true;
205
ws.require_optional_deps = require_optional_deps;
206
let key = ws.current_manifest.parent().unwrap();
0 commit comments