Don't fetch build script output twice

This commit is contained in:
Jonas Schievink 2021-08-25 17:56:24 +02:00
parent ce4670f299
commit 095df7bc39

View file

@ -232,14 +232,6 @@ impl GlobalState {
let mut res = Vec::new(); let mut res = Vec::new();
for ws in workspaces.iter() { for ws in workspaces.iter() {
res.push(ws.run_build_scripts(&config, &progress)); res.push(ws.run_build_scripts(&config, &progress));
let ws = match ws {
ProjectWorkspace::Cargo { cargo, .. } => cargo,
ProjectWorkspace::DetachedFiles { .. } | ProjectWorkspace::Json { .. } => {
res.push(Ok(WorkspaceBuildScripts::default()));
continue;
}
};
res.push(WorkspaceBuildScripts::run(&config, ws, &progress))
} }
sender.send(Task::FetchBuildData(BuildDataProgress::End((workspaces, res)))).unwrap(); sender.send(Task::FetchBuildData(BuildDataProgress::End((workspaces, res)))).unwrap();
}); });