-
Notifications
You must be signed in to change notification settings - Fork 18
Give PSArm block an alias-free environment so property keywords work #133
base: master
Are you sure you want to change the base?
Conversation
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.
The changes look fine, but can you please add more context information in the PR description about why an alias-free environment is needed? The referenced issue doesn't have the related context information either.
I've updated the issue to describe the problem and the PR to describe the solution (the solution description not as detailed). |
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
|
||
# Copyright (c) Microsoft Corporation. |
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.
Shouldn't need the duplicated Copyright line
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
|
||
# Copyright (c) Microsoft Corporation. |
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.
Shouldn't need the duplicated Copyright line
test/pester/Conversion.Tests.ps1
Outdated
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
|
||
# Copyright (c) Microsoft Corporation. |
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.
Shouldn't need the duplicated Copyright line
Fixes #126.
In this PR, we use internal PowerShell engine APIs to tear down the aliases in each parent scope and store them while the
Arm
block body is executed. When execution is complete, we then restore the alias definitions to each scope using other internal PowerShell engine APIs.