Skip to content

Commit 94abace

Browse files
Add logging for dependency resolution in Install-PSModule function
1 parent e165fcd commit 94abace

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/Helpers/Helpers.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ function Install-PSModule {
310310
$moduleName = Split-Path -Path $Path -Leaf
311311
$manifestFilePath = Join-Path -Path $Path "$moduleName.psd1"
312312
Write-Verbose " - Manifest file path: [$manifestFilePath]" -Verbose
313+
Write-Host '::group::Resolving dependencies'
313314
Resolve-PSModuleDependency -ManifestFilePath $manifestFilePath
315+
Write-Host '::endgroup::'
314316
$PSModulePath = $env:PSModulePath -split [System.IO.Path]::PathSeparator | Select-Object -First 1
315317
$codePath = New-Item -Path "$PSModulePath/$moduleName/999.0.0" -ItemType Directory -Force | Select-Object -ExpandProperty FullName
316318
Copy-Item -Path "$Path/*" -Destination $codePath -Recurse -Force

0 commit comments

Comments
 (0)