Resolve virtual packages in remove subcommand

This commit is contained in:
2025-10-09 14:14:14 +03:00
parent 34fb7ce1d6
commit 705aec8e6e
+3
View File
@@ -199,6 +199,9 @@ func RemovePackages(rootDir string, force, cleanupDependencies bool, packages ..
// Search for packages
for _, pkg := range packages {
bpmpkg := GetPackage(pkg, rootDir)
if isVirutal, vpkg := IsVirtualPackage(pkg, rootDir); isVirutal {
bpmpkg = GetPackage(vpkg, rootDir)
}
if bpmpkg == nil {
continue
}