Skip to content

Commit 505a310

Browse files
🪲 [Fix]: Avoid using Set-ModuleManifest on diverse runners (#36)
## Description - Stop using Set-ModuleManifest as it is not compatible with Windows PowerShell yet. This needs a fix in Utilities first. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent d15f697 commit 505a310

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

scripts/helpers/Test-PSModule.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ function Test-PSModule {
126126
#region Import module
127127
if ((Test-Path -Path $moduleTestsPath) -and $testModule) {
128128
Start-LogGroup "Importing module: $moduleName"
129-
$moduleManifestPath = Join-Path -Path $Path -ChildPath "$moduleName.psd1"
130-
Set-ModuleManifest -Path $moduleManifestPath -ModuleVersion '999.0.0'
131129
Add-PSModulePath -Path (Split-Path $Path -Parent)
132130
Get-Module -Name $moduleName -ListAvailable | Remove-Module -Force
133131
Import-Module -Name $moduleName -Force -RequiredVersion '999.0.0' -Global

tests/outputs/modules/PSModuleTest/PSModuleTest.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@{
22
RootModule = 'PSModuleTest.psm1'
3-
ModuleVersion = '0.0.1'
3+
ModuleVersion = '999.0.0'
44
CompatiblePSEditions = @(
55
'Core'
66
'Desktop'

0 commit comments

Comments
 (0)