Skip to content

Commit 174fa46

Browse files
authored
NextMajor fixes: Sorting is broken in Get-BcContainerAppInfo (#3367)
In BCApps we use Get-BcContainerAppInfo to get a sorted list of apps so we can uninstall them in the right order. In the latest artifacts they are not sorted in the right order though See failures in: https://github.com/microsoft/BCApps/actions/runs/8015836387 or https://github.com/aholstrup1/BCApps/actions/runs/8023595403 With this change, the build passes again https://github.com/aholstrup1/BCApps/actions/runs/8023619694
1 parent 714ff2d commit 174fa46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AppHandling/Get-NavContainerAppInfo.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ try {
9090

9191
function AddDependency { Param($dependency)
9292
#Write-Host "Add Dependency $($dependency.Name) $($dependency.Version)"
93-
$dependentApp = $apps | Where-Object { $_.AppId -eq $dependency.AppId }
93+
$dependentApp = $apps | Where-Object { "$($_.AppId)" -eq "$($dependency.AppId)" }
9494
if ($dependentApp) {
9595
@($dependentApp) | ForEach-Object { AddAnApp -AnApp $_ }
9696
}

0 commit comments

Comments
 (0)