From 4149453bd7273957d2b49179a91b2743b690e718 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Fri, 28 Feb 2025 05:44:15 +0100 Subject: [PATCH] Fix pipeline issues on Windows PowerShell --- CHANGELOG.md | 2 ++ azure-pipelines.yml | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18ea1827..669dc22e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix Dockerfile to include GitVersion alias for PowerShell Extension profile script. - Fix `.vscode/settings.json` file to exclude unrecognized words. +- Fix pipeline issues on Windows PowerShell due to the issue https://github.com/PoshCode/ModuleBuilder/pull/136. + ## [0.12.5] - 2024-08-14 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 977ccd85..7cbd1123 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -94,6 +94,17 @@ stages: buildType: 'current' artifactName: $(buildArtifactName) targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)' + # This is a workaround for the issue: https://github.com/PoshCode/ModuleBuilder/pull/136 + - task: PowerShell@2 + name: patch_module + displayName: 'Patch module ModuleBuilder' + inputs: + targetType: 'inline' + script: | + ./build.ps1 -Task noop + Install-PSResource -Name 'Viscalyx.Common' -Repository 'PSGallery' -TrustRepository -Quiet -Confirm:$false + Install-ModulePatch -Uri 'https://raw.githubusercontent.com/viscalyx/Viscalyx.Common/refs/heads/main/patches/ModuleBuilder_3.1.7_patch.json' -Force + pwsh: true - task: PowerShell@2 name: test displayName: 'Run Unit Test'