Skip to content

Commit 32b7f6f

Browse files
authored
Fix pipeline issues on Windows PowerShell (#165)
1 parent 04ce853 commit 32b7f6f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5959

6060
- Fix Dockerfile to include GitVersion alias for PowerShell Extension profile script.
6161
- Fix `.vscode/settings.json` file to exclude unrecognized words.
62+
- Fix pipeline issues on Windows PowerShell due to the issue https://github.com/PoshCode/ModuleBuilder/pull/136.
63+
6264

6365
## [0.12.5] - 2024-08-14
6466

azure-pipelines.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ stages:
9494
buildType: 'current'
9595
artifactName: $(buildArtifactName)
9696
targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)'
97+
# This is a workaround for the issue: https://github.com/PoshCode/ModuleBuilder/pull/136
98+
- task: PowerShell@2
99+
name: patch_module
100+
displayName: 'Patch module ModuleBuilder'
101+
inputs:
102+
targetType: 'inline'
103+
script: |
104+
./build.ps1 -Task noop
105+
Install-PSResource -Name 'Viscalyx.Common' -Repository 'PSGallery' -TrustRepository -Quiet -Confirm:$false
106+
Install-ModulePatch -Uri 'https://raw.githubusercontent.com/viscalyx/Viscalyx.Common/refs/heads/main/patches/ModuleBuilder_3.1.7_patch.json' -Force
107+
pwsh: true
97108
- task: PowerShell@2
98109
name: test
99110
displayName: 'Run Unit Test'

0 commit comments

Comments
 (0)