-
Notifications
You must be signed in to change notification settings - Fork 45
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
2.11.1 Carbon fails as nested module #118
Conversation
…hopefully make Carbon work as a nested module.
CHANGELOG.md
Outdated
* Fixed: Carbon fails when used as a nested module and Carbon is loaded globally or by nested in another module. | ||
|
||
|
||
# 2.12.0 |
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.
Version headings are incorrect, this should be 2.11.1
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.
Yeah. There was some versioning confusion. 😆
Carbon/Carbon.psm1
Outdated
@@ -94,6 +117,86 @@ $TrustedHostsPath = 'WSMan:\localhost\Client\TrustedHosts' | |||
Write-Timing ('Adding System.DirectoryServices.AccountManagement assembly.') | |||
Add-Type -AssemblyName 'System.DirectoryServices.AccountManagement' | |||
|
|||
$MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = { Write-Host 'I am being removed!' } |
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.
Did you intend to leave this here?
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.
Nope. Removed.
No description provided.