Skip to content

Commit 480ee26

Browse files
azure-sdkbenbp
andauthored
Bump powershell yaml versions to 0.4.7 (Azure#47162)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent b6dc6e5 commit 480ee26

11 files changed

+13
-13
lines changed

eng/common/scripts/Cadl-Project-Generate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param (
1212
$ErrorActionPreference = "Stop"
1313
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
1414
. $PSScriptRoot/common.ps1
15-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
15+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
1616

1717
function NpmInstallForProject([string]$workingDirectory) {
1818
Push-Location $workingDirectory

eng/common/scripts/Cadl-Project-Sync.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ param (
99

1010
$ErrorActionPreference = "Stop"
1111
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
12-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
12+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
1313
$sparseCheckoutFile = ".git/info/sparse-checkout"
1414

1515
function AddSparseCheckoutPath([string]$subDirectory) {

eng/common/scripts/Helpers/Package-Helpers.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function CompatibleConvertFrom-Yaml {
8080
$yqPresent = Get-Command 'yq' -ErrorAction SilentlyContinue
8181
if (-not $yqPresent) {
8282
. (Join-Path $PSScriptRoot PSModule-Helpers.ps1)
83-
Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.1" | Import-Module
83+
Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.7" | Import-Module
8484
}
8585

8686
# Process the content (for example, you could convert from YAML here)

eng/common/scripts/TypeSpec-Project-Generate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $ErrorActionPreference = "Stop"
1313
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
1414
. $PSScriptRoot/Helpers/CommandInvocation-Helpers.ps1
1515
. $PSScriptRoot/common.ps1
16-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
16+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
1717

1818
function NpmInstallForProject([string]$workingDirectory) {
1919
Push-Location $workingDirectory

eng/common/scripts/TypeSpec-Project-Process.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param (
1414

1515
. $PSScriptRoot/common.ps1
1616
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
17-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
17+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
1818

1919
function CreateUpdate-TspLocation([System.Object]$tspConfig, [string]$TypeSpecProjectDirectory, [string]$CommitHash, [string]$repo, [string]$repoRoot, [ref]$isNewSdkProject) {
2020
$additionalDirs = @()
@@ -225,4 +225,4 @@ if ($SkipSyncAndGenerate -and !$isNewSdkProject) {
225225
}
226226
}
227227

228-
return $sdkProjectFolder
228+
return $sdkProjectFolder

eng/common/scripts/TypeSpec-Project-Sync.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ param (
1111

1212
$ErrorActionPreference = "Stop"
1313
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
14-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
14+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
1515
$sparseCheckoutFile = ".git/info/sparse-checkout"
1616

1717
function AddSparseCheckoutPath([string]$subDirectory) {

eng/common/scripts/Update-DocsMsToc.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ param(
5555
. $PSScriptRoot/common.ps1
5656
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
5757

58-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
58+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
5959

6060
Set-StrictMode -Version 3
6161

eng/common/scripts/Verify-Resource-Ref.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
. (Join-Path $PSScriptRoot common.ps1)
2-
Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser
2+
Install-Module -Name powershell-yaml -RequiredVersion 0.4.7 -Force -Scope CurrentUser
33
$ymlfiles = Get-ChildItem $RepoRoot -recurse | Where-Object {$_ -like '*.yml'}
44
$affectedRepos = [System.Collections.ArrayList]::new()
55

@@ -48,4 +48,4 @@ if ($affectedRepos.Count -gt 0)
4848
exit 1
4949
}
5050

51-
Write-Output "All repository resources in yaml files reference a valid tag"
51+
Write-Output "All repository resources in yaml files reference a valid tag"

eng/common/scripts/Verify-RestApiSpecLocation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (-not $GitHubPat) {
5050

5151
Write-Host "The spec used to release SDK should be from the main branch of Azure/azure-rest-api-specs repository."
5252
Write-Host "ServiceDir:$ServiceDirectory, PackageName:$PackageName, ArtifactLocation:$ArtifactLocation, PackageInfoDirectory:$PackageInfoDirectory."
53-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
53+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
5454

5555
# This function is used to verify the 'require' and 'input-file' settings in autorest.md point to the main branch of Azure/azure-rest-api-specs repository
5656
# input-file may be:

eng/common/scripts/job-matrix/job-matrix-functions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function GetMatrixConfigFromFile([String] $config) {
213213
}
214214

215215
function GetMatrixConfigFromYaml([String] $yamlConfig) {
216-
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
216+
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module
217217
# ConvertTo then from json is to make sure the nested values are in PSCustomObject
218218
[MatrixConfig]$config = ConvertFrom-Yaml $yamlConfig -Ordered | ConvertTo-Json -Depth 100 | ConvertFrom-Json
219219
return GetMatrixConfig $config

0 commit comments

Comments
 (0)