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

FixDSC_RESOURCE_PATH env var to also limit exe search#825

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 original intent ofDSC_RESOURCE_PATH was to constrain searching not only manifests but also executables to the paths of that env var. However, the current code only used it for finding resource manifests and relied on the existingPATH to find executables.

The change is to set the processPATH env var to same asDSC_RESOURCE_PATH such that the original intent is respected. We should make this clear in the docs. If the user wants to temporarily add toPATH using this env var, they should appendPATH to it like:

$env:DSC_RESOURCE_PATH="foo;$env:PATH"

PR Context

Fix#814

@SteveL-MSFT
Copy link
MemberAuthor

Looks like a bunch of tests relied on the previous behavior and I'll need to fix them

@SteveL-MSFTSteveL-MSFT marked this pull request as draftMay 21, 2025 18:39
@SteveL-MSFTSteveL-MSFT marked this pull request as ready for reviewJune 3, 2025 21:06
@SteveL-MSFTSteveL-MSFT added this pull request to themerge queueJun 4, 2025
Merged via the queue intoPowerShell:main with commitdb17be0Jun 4, 2025
4 checks passed
@SteveL-MSFTSteveL-MSFT deleted the dscresourcepath-path branchJune 4, 2025 16:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tgauthtgauthtgauth approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

DSC_RESOURCE_PATH should be prefixed toPATH
2 participants
@SteveL-MSFT@tgauth

[8]ページ先頭

©2009-2025 Movatter.jp