Patch cargo script root files back to manifest

This commit is contained in:
Lukas Wirth 2024-04-19 15:50:27 +02:00
parent 0b24599cf9
commit 46f05543a2
4 changed files with 26 additions and 16 deletions

View file

@ -437,7 +437,7 @@ impl ProjectWorkspace {
detached_files: Vec<AbsPathBuf>,
config: &CargoConfig,
) -> Vec<anyhow::Result<ProjectWorkspace>> {
dbg!(detached_files
detached_files
.into_iter()
.map(|detached_file| {
let dir = detached_file
@ -508,7 +508,7 @@ impl ProjectWorkspace {
cargo_script,
})
})
.collect())
.collect()
}
/// Runs the build scripts for this [`ProjectWorkspace`].
@ -822,7 +822,7 @@ impl ProjectWorkspace {
} => (
if let Some(cargo) = cargo_script {
cargo_to_crate_graph(
load,
&mut |path| load(path),
None,
cargo,
sysroot.as_ref().ok(),