Skip to content
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

Merged
merged 6 commits into from
Feb 28, 2022

Conversation

splatteredbits
Copy link
Member

No description provided.

@splatteredbits splatteredbits requested a review from a team as a code owner February 26, 2022 21:05
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
Copy link
Member

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

Copy link
Member Author

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. 😆

@@ -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!' }
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Removed.

@splatteredbits splatteredbits merged commit 62c337a into master Feb 28, 2022
@splatteredbits splatteredbits deleted the bugfix/carbon-fails-as-nested-module branch February 28, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants