Skip to content

Commit

Permalink
💄Better dependency message
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGrote committed Jan 4, 2024
1 parent b9b6770 commit 8ccbbcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ModuleFast.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -759,14 +759,14 @@ function Get-ModuleFastPlan {
# meaninful performance difference on a whole-system upgrade.
[HashSet[string]]$moduleNames = $modulesToInstall.Name
if ($dependency.Name -notin $ModuleNames) {
Write-Debug "No modules with name $($dependency.Name) currently exist in the install plan. Resolving dependency..."
Write-Debug "$($dependency.Name): No modules with this name currently exist in the install plan. Resolving dependency..."
return $true
}

$modulesToInstall
| Where-Object Name -EQ $dependency.Name
| Sort-Object ModuleVersion -Descending
| ForEach-Object {
$modulesToInstall
| Where-Object Name -EQ $dependency.Name
| Sort-Object ModuleVersion -Descending
| ForEach-Object {
if ($dependency.SatisfiedBy($PSItem.ModuleVersion)) {
Write-Debug "Dependency $dependency satisfied by existing planned install item $PSItem"
return $false
Expand Down

0 comments on commit 8ccbbcc

Please sign in to comment.