Skip to content

Commit a677a07

Browse files
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 (Azure#20523)
Co-authored-by: Daniel Jurek <[email protected]>
1 parent 812c232 commit a677a07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eng/common/scripts/Update-DocsMsToc.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ param(
3838
[Parameter(Mandatory = $true)]
3939
[string] $OutputLocation
4040
)
41-
Set-StrictMode -Version 3
4241
. $PSScriptRoot/common.ps1
4342
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1
4443

4544
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module
4645

46+
Set-StrictMode -Version 3
47+
4748
function GetClientPackageNode($clientPackage) {
4849
$packageInfo = &$GetDocsMsTocDataFn `
4950
-packageMetadata $clientPackage `

0 commit comments

Comments
 (0)