Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

For WinPS Adapter remove PS7 paths from PSModulePath#777

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

The WinPS adapter is inheriting PS7 paths whendsc is run from PS7, this causes WinPS to find incompatible modules. The fix here is when WinPS adapter is used to explicitly remove PS7 paths from$env:PSModulePath.

The other change is something I noticed and I think it was copied from the PS7 adapter but WinPS adapter doesn't need to worry about non-Windows so simplified the code.

PR Context

Fix#707

Copy link
Member

@mgreenegitmgreenegit left a comment

Choose a reason for hiding this comment

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

Great catch

Copy link
Collaborator

@theJasonHelmicktheJasonHelmick left a comment

Choose a reason for hiding this comment

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

LGTM

@SteveL-MSFTSteveL-MSFT merged commitaaec641 intoPowerShell:mainMay 5, 2025
4 checks passed
@SteveL-MSFTSteveL-MSFT deleted the winps-psmodulepath branchMay 5, 2025 17:35
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mgreenegitmgreenegitmgreenegit approved these changes

@theJasonHelmicktheJasonHelmicktheJasonHelmick approved these changes

@michaeltlombardimichaeltlombardiAwaiting requested review from michaeltlombardi

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

WindowsPowerShell adapter should not discover resources unavailable in Windows PowerShell
3 participants
@SteveL-MSFT@mgreenegit@theJasonHelmick

[8]ページ先頭

©2009-2025 Movatter.jp