Move Set-StrictMode to run after PSModule-Helpers.ps1 operations which violate strict mode and cause a falure as in https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1389880&view=logs&j=dc056dfc-c0cf-5958-c8c4-8da4f91a3739&t=61cf404c-fb38-582c-ffd7-16eb9e7ec7ac&l=97 (#3370)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
parent
0fd5d9cd9a
commit
3674bef659
@ -38,12 +38,13 @@ param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string] $OutputLocation
|
||||
)
|
||||
Set-StrictMode -Version 3
|
||||
. $PSScriptRoot/common.ps1
|
||||
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
|
||||
|
||||
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
|
||||
|
||||
Set-StrictMode -Version 3
|
||||
|
||||
function GetClientPackageNode($clientPackage) {
|
||||
$packageInfo = &$GetDocsMsTocDataFn `
|
||||
-packageMetadata $clientPackage `
|
||||
|
||||
Loading…
Reference in New Issue
Block a user