fix(translator/cargo-lock): filter out root member (.) since we already parse this

This commit is contained in:
Yusuf Bera Ertan 2022-04-10 17:53:25 +03:00
parent aa6099ecf2
commit 1cca528ec6
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -51,7 +51,8 @@ in {
workspaceCargoPackages =
l.map
(relPath: readToml "${inputDir}/${relPath}/Cargo.toml")
workspaceMembers;
# Filter root referencing member, we already parsed this (rootToml)
(l.filter (relPath: relPath != ".") workspaceMembers);
# All cargo packages that we will output
cargoPackages =