diff --git a/CHANGELOG.md b/CHANGELOG.md index 881c3f6..bd6fd2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ + +# 0.5.2 + +* Adding support for PackageManagement 1.4.8.1. + + # 0.5.1 ## Fixed @@ -106,4 +112,4 @@ fresh repository. ## Fixed -* Module fails to publish to PowerShell Gallery. \ No newline at end of file +* Module fails to publish to PowerShell Gallery. \ No newline at end of file diff --git a/Prism/Functions/Invoke-Prism.ps1 b/Prism/Functions/Invoke-Prism.ps1 index 6cb8b33..d094db2 100644 --- a/Prism/Functions/Invoke-Prism.ps1 +++ b/Prism/Functions/Invoke-Prism.ps1 @@ -45,7 +45,7 @@ function Invoke-Prism begin { Set-StrictMode -Version 'Latest' - Use-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState + Use-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState $origModulePath = $env:PSModulePath @@ -53,7 +53,7 @@ function Invoke-Prism Import-Module -Name 'PackageManagement' ` -MinimumVersion '1.3.2' ` - -MaximumVersion '1.4.7' ` + -MaximumVersion '1.4.8.1' ` -Global ` -ErrorAction Stop ` @pkgMgmtPrefs @@ -175,7 +175,7 @@ function Invoke-Prism switch( $Command ) { - 'install' + 'install' { $config | Install-PrivateModule } diff --git a/Prism/Prism.psd1 b/Prism/Prism.psd1 index e2a8130..cc19277 100644 --- a/Prism/Prism.psd1 +++ b/Prism/Prism.psd1 @@ -18,7 +18,7 @@ RootModule = 'Prism.psm1' # Version number of this module. - ModuleVersion = '0.5.1' + ModuleVersion = '0.5.2' # ID used to uniquely identify this module GUID = '5b244346-40c9-4a50-a098-8758c19f7f25' diff --git a/Tests/Invoke-Prism.Tests.ps1 b/Tests/Invoke-Prism.Tests.ps1 index 3e59b24..675d358 100644 --- a/Tests/Invoke-Prism.Tests.ps1 +++ b/Tests/Invoke-Prism.Tests.ps1 @@ -45,8 +45,8 @@ BeforeAll { { Get-Module -Name 'PackageManagement' | Where-Object 'Version' -ge ([Version]'1.3.2') | - Where-Object 'Version' -le ([Version]'1.4.7') | - Should -Not -BeNullOrEmpty -Because 'should import PackageManagement 1.3.2 - 1.4.7' + Where-Object 'Version' -le ([Version]'1.4.8.1') | + Should -Not -BeNullOrEmpty -Because 'should import PackageManagement 1.3.2 - 1.4.8.1' Get-Module -Name 'PowerShellGet' | Where-Object 'Version' -ge ([Version]'2.0.0') | @@ -60,7 +60,7 @@ BeforeAll { param( [Parameter(Mandatory)] [String] $Named, - + [Parameter(Mandatory)] [hashtable[]] $Passing ) @@ -170,7 +170,7 @@ BeforeAll { Mock -CommandName 'Update-ModuleLock' -ModuleName 'Prism' $WithParameters['Command'] = $Named - try + try { if( $WithPipelineInput ) { @@ -194,7 +194,7 @@ AfterAll { } Describe 'Invoke-Prism' { - BeforeEach { + BeforeEach { $script:testRoot = $null $script:moduleList = @() $script:failed = $false diff --git a/appveyor.yml b/appveyor.yml index fdf18d4..03f8f3f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,9 +12,10 @@ test: off environment: WHISKEY_DISABLE_ERROR_FORMAT: True matrix: - - job_name: PowerShell 7.2 on Windows - job_group: pwsh - appveyor_build_worker_image: Visual Studio 2022 # Windows Server 2019 +# TODO: add back to build once Prism *and* Whiskey support PackageManagement 1.4.8.1. +# - job_name: PowerShell 7.2 on Windows +# job_group: pwsh +# appveyor_build_worker_image: Visual Studio 2022 # Windows Server 2019 - job_name: PowerShell 7.1 on macOS job_group: pwsh @@ -32,9 +33,10 @@ environment: job_group: pwsh appveyor_build_worker_image: Visual Studio 2015 # Windows Server 2012R2 - - job_name: PowerShell 7.2 on Ubuntu - job_group: pwsh - appveyor_build_worker_image: Ubuntu +# TODO: figure out why builds hang on this platform +# - job_name: PowerShell 7.2 on Ubuntu +# job_group: pwsh +# appveyor_build_worker_image: Ubuntu - job_name: PowerShell 7.1 on Windows job_group: pwsh