Small fixes

This commit is contained in:
2024-09-14 12:27:14 +03:00
parent 82d3c8bd51
commit 7b491874eb
3 changed files with 24 additions and 10 deletions
+3 -1
View File
@@ -1280,7 +1280,9 @@ func (pkgInfo *PackageInfo) ResolveAll(resolved, unresolved *[]string, checkMake
entry.Info.ResolveAll(resolved, unresolved, checkMake, checkOptional, ignoreInstalled, rootDir)
}
}
*resolved = append(*resolved, pkgInfo.Name)
if !slices.Contains(*resolved, pkgInfo.Name) {
*resolved = append(*resolved, pkgInfo.Name)
}
*unresolved = stringSliceRemove(*unresolved, pkgInfo.Name)
return *resolved, *unresolved
}