WIP: Sanitize PSModulePath to prevent loading of incompatible module versions#19017
WIP: Sanitize PSModulePath to prevent loading of incompatible module versions#19017zurcher wants to merge 1 commit intoPowerShell:masterfrom
Conversation
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment. |
PR Summary
This change removes PowerShell specific segments of PSModulePath for all processes, not just "powershell.exe" calls. This resolves module failures when
powershellis called via any intermediary program (such as python).PR Context
Fixing #18530 which was introduced by #16355
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).