Fix panic when json project has relative buildfile paths

This commit is contained in:
David Richey 2024-10-12 01:51:24 -05:00
parent 0fb804acb3
commit eded3a8e29

View file

@ -553,7 +553,7 @@ impl ProjectWorkspace {
ProjectWorkspaceKind::Json(project) => project
.crates()
.filter_map(|(_, krate)| krate.build.as_ref().map(|build| build.build_file.clone()))
.map(AbsPathBuf::assert)
.map(|build_file| self.workspace_root().join(build_file))
.collect(),
_ => vec![],
}