-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Set-StrictMode to run after PSModule-Helpers.ps1 operations #2805
Conversation
The following pipelines have been queued for testing: |
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
@@ -38,12 +38,13 @@ param( | |||
[Parameter(Mandatory = $true)] | |||
[string] $OutputLocation | |||
) | |||
Set-StrictMode -Version 3 | |||
. $PSScriptRoot/common.ps1 | |||
. $PSScriptRoot/Helpers/PSModule-Helpers.ps1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should eventually fix the strict mode issues for this script instead of working around it.
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
Successful run after moving Set-StrictMode -- https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1390051&view=logs&j=dc056dfc-c0cf-5958-c8c4-8da4f91a3739&t=61cf404c-fb38-582c-ffd7-16eb9e7ec7ac
@benbp -- PTAL