Skip to content

Commit 8ccbbcc

Browse files
committed
💄Better dependency message
1 parent b9b6770 commit 8ccbbcc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ModuleFast.psm1

+5-5
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,14 @@ function Get-ModuleFastPlan {
759759
# meaninful performance difference on a whole-system upgrade.
760760
[HashSet[string]]$moduleNames = $modulesToInstall.Name
761761
if ($dependency.Name -notin $ModuleNames) {
762-
Write-Debug "No modules with name $($dependency.Name) currently exist in the install plan. Resolving dependency..."
762+
Write-Debug "$($dependency.Name): No modules with this name currently exist in the install plan. Resolving dependency..."
763763
return $true
764764
}
765765

766-
$modulesToInstall
767-
| Where-Object Name -EQ $dependency.Name
768-
| Sort-Object ModuleVersion -Descending
769-
| ForEach-Object {
766+
$modulesToInstall
767+
| Where-Object Name -EQ $dependency.Name
768+
| Sort-Object ModuleVersion -Descending
769+
| ForEach-Object {
770770
if ($dependency.SatisfiedBy($PSItem.ModuleVersion)) {
771771
Write-Debug "Dependency $dependency satisfied by existing planned install item $PSItem"
772772
return $false

0 commit comments

Comments
 (0)