Skip to content

Resolve the assembly conflict that could be caused by PlatyPS - #587

Merged
Aditya Patwardhan (adityapatwardhan) merged 6 commits into
PowerShell:v2from
daxian-dbw:isolated
Sep 7, 2022
Merged

Aditya Patwardhan (adityapatwardhan) merged 6 commits into
PowerShell:v2from
daxian-dbw:isolated

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented Sep 3, 2022 •

Copy link
Copy Markdown
Member

PR Summary

PlatyPS depends on YamlDotNet, which is a very common dependency of many other module, such as powershell-yaml.
Due to the different versions that different modules may depend on, this could cause a conflict in assembly loading when importing those modules in the same PowerShell session.

This PR rearranges the module folder structure, as well as how to load those the dependencies, so as to avoid PlatyPS from causing the assembly conflicts.

PR Context

Reference: PowerShell/PowerShell#2083
See the comment PowerShell/PowerShell#2083 (comment)

@daxian-dbw

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) Please review when you have time. Thanks!

@adityapatwardhan

Copy link
Copy Markdown
Member

Changes look good. I have fixed the CI, so it will run tests now.

Comment thread src/ModuleInitAndCleanup.cs Resolved
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.

3 participants