Fix panic when json project has relative buildfile paths
This commit is contained in:
parent
ee7c8b9a90
commit
0865296a27
@ -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![],
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user