Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Feb 3, 2024
1 parent ef783e9 commit 82bd04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Resolve-Dependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ param
$UsePowerShellGetCompatibilityModuleVersion
)

Write-Verbose -Message ("BoundParameters: $($PSBoundParameters | Out-String)") -Verbose

try
{
if ($PSVersionTable.PSVersion.Major -le 5)
Expand Down Expand Up @@ -947,6 +945,7 @@ try

$percentagePerModule = [System.Math]::Floor(100 / $modulesToSave.Length)

# TODO: This is not necessary unless -Parallell can be used (which isn't the case in older PowerShell versions).
# Inspired from https://stackoverflow.com/questions/67114770/are-non-concurrent-collections-safe-inside-concurrent-collections
$syncProgress = [System.Collections.Concurrent.ConcurrentDictionary[string, int]]::new()

Expand All @@ -955,10 +954,8 @@ try

Write-Progress -Activity 'PSResourceGet:' -PercentComplete $progressPercent -CurrentOperation 'Restoring Build Dependencies'

Write-Verbose -Message ((Get-Command ForEach-Object).Parameters.Keys | Out-String) -Verbose
Write-Verbose -Message (get-Help ForEach-Object | Out-String) -Verbose

# This scriptblock is used by ForEach-Object below.
# TODO: The scriptblock cannot use the $using: scope to access variables when passes to parameter -Process
$forEachObjectScriptBlock = {
$currentModule = $_

Expand Down
2 changes: 0 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,6 @@ begin

Write-Host -Object "[pre-build] Starting bootstrap process." -ForegroundColor Green

Write-Verbose -Message "Calling .\Resolve-Dependency.ps1 with parameters: $($resolveDependencyParams | Out-String)" -Verbose

.\Resolve-Dependency.ps1 @resolveDependencyParams
}

Expand Down

0 comments on commit 82bd04d

Please sign in to comment.