Skip to content

Commit

Permalink
use Microsoft.Powershell.PSResourceGet in CI as we released a new Pow…
Browse files Browse the repository at this point in the history
…erShellGet preview that gets pulled in but doesnt match used cmdlets anymore
  • Loading branch information
anamnavi committed Sep 24, 2023
1 parent 53784f6 commit 981801c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .ci/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ stages:
- pwsh: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Write-Verbose -Verbose "Install PSResourceGet to temp module path"
Save-Module -Name PowerShellGet -MinimumVersion 3.0.18-beta18 -Path $modulePath -AllowPrerelease -Force
displayName: Install PowerShellGet v3
Save-Module -Name Microsoft.PowerShell.PSResourceGet -MinimumVersion 0.9.0-rc1 -Path $modulePath -AllowPrerelease -Force
displayName: Install Microsoft.PowerShell.PSResourceGet v3
- pwsh: |
Get-ChildItem -Path $(Build.SourcesDirectory)/src/code -Recurse
Expand Down
4 changes: 2 additions & 2 deletions .ci/ci_auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ stages:
- pwsh: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Write-Verbose -Verbose "Install PSResourceGet to temp module path"
Save-Module -Name PowerShellGet -MinimumVersion 3.0.18-beta18 -Path $modulePath -AllowPrerelease -Force
displayName: Install PowerShellGet v3
Save-Module -Name Microsoft.PowerShell.PSResourceGet -MinimumVersion 0.9.0-rc1 -Path $modulePath -AllowPrerelease -Force
displayName: Install Microsoft.PowerShell.PSResourceGet v3
- pwsh: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Expand Down
4 changes: 2 additions & 2 deletions .ci/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ stages:
- pwsh: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Write-Verbose -Verbose "Install PSResourceGet to temp module path"
Save-Module -Name PowerShellGet -MinimumVersion 3.0.18-beta18 -Path $modulePath -AllowPrerelease -Force
displayName: Install PowerShellGet v3
Save-Module -Name Microsoft.PowerShell.PSResourceGet -MinimumVersion 0.9.0-rc1 -Path $modulePath -AllowPrerelease -Force
displayName: Install Microsoft.PowerShell.PSResourceGet v3
- pwsh: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Expand Down
4 changes: 2 additions & 2 deletions .ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
- ${{ parameters.powershellExecutable }}: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Write-Verbose -Verbose "Install PSResourceGet to temp module path"
Save-Module -Name PowerShellGet -MinimumVersion 3.0.18-beta18 -Path $modulePath -AllowPrerelease -Force
Save-Module -Name Microsoft.PowerShell.PSResourceGet -MinimumVersion 0.9.0-rc1 -Path $modulePath -AllowPrerelease -Force
Write-Verbose -Verbose "Install Pester 4.X to temp module path"
Save-Module -Name "Pester" -MaximumVersion 4.99 -Path $modulePath -Force
displayName: Install PowerShellGetV3 and Pester
displayName: Install Microsoft.PowerShell.PSResourceGet and Pester
- ${{ parameters.powershellExecutable }}: |
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_Report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
For PowerShellGet v2 issues, please use [PowerShellGetv2 repo](https://github.com/PowerShell/PowerShellGetv2).
This repository is **ONLY** for PSResourceGet issues.
This repository is **ONLY** for Microsoft.PowerShell.PSResourceGet issues.
- type: checkboxes
attributes:
label: Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion buildtools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the MIT License.

$ConfigurationFileName = 'package.config.json'
Import-Module -Name PowerShellGet -MinimumVersion 3.0.18
Import-Module -Name Microsoft.PowerShell.PSResourceGet -MinimumVersion 0.9.0

function Get-BuildConfiguration {
[CmdletBinding()]
Expand Down

0 comments on commit 981801c

Please sign in to comment.