From 0b90b71395a624b31c64900cd8e31e0829e46fbb Mon Sep 17 00:00:00 2001 From: Florian Hopfner Date: Sat, 5 Oct 2024 13:16:42 +0200 Subject: [PATCH] log information about installed modules --- build/buildtools.ps1 | 1 + build/vsts-prerequisites.ps1 | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/buildtools.ps1 b/build/buildtools.ps1 index 5d607234..5d2728d3 100644 --- a/build/buildtools.ps1 +++ b/build/buildtools.ps1 @@ -13,6 +13,7 @@ foreach ($item in $modules) { if ($null -eq $module) { Write-Host "Installing $item" -ForegroundColor Cyan Install-Module -Name $item -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck + Get-Mdoule -Name $item -ListAvailable } Import-Module $item -Force diff --git a/build/vsts-prerequisites.ps1 b/build/vsts-prerequisites.ps1 index 31b646c2..c6bf84e1 100644 --- a/build/vsts-prerequisites.ps1 +++ b/build/vsts-prerequisites.ps1 @@ -4,10 +4,8 @@ Write-Host "The user running is: $($env:UserName)" # $modules = @("PSFramework", "Az.Storage", "AzureAd", "PSNotification", "PSOAuthHelper", "PowerShellGet", "PackageManagement","ImportExcel","PSScriptAnalyzer") $modules = @("PSFramework", "PSScriptAnalyzer", "Az.Storage", "AzureAd", "PSNotification", "PSOAuthHelper", "ImportExcel") +Write-Host "Installing Pester, maximum version 4.99.99" -ForegroundColor Cyan Install-Module "Pester" -MaximumVersion 4.99.99 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck -# TODO: When issue #645 with PSFramework is resolved, this line can be removed again. -# https://github.com/PowershellFrameworkCollective/psframework/issues/645 -Install-Module "PSFramework" -MaximumVersion 1.11.343 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck foreach ($item in $modules) { @@ -16,6 +14,7 @@ foreach ($item in $modules) { if ($null -eq $module) { Write-Host "Installing $item" -ForegroundColor Cyan Install-Module -Name $item -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck + Get-Module -Name $item -ListAvailable } Import-Module $item -Force