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

Add DSC home directory to PATH to find included resources #499

Merged
merged 4 commits into from
Jul 25, 2024

Conversation

anmenaga
Copy link
Collaborator

PR Summary

Fix #494

As described in the issue, after this fix DSC will update its process PATH env var to have path to dsc.exe (unless it is already there), so that included resources manifests and executables are found.
A side effect of this change is that resource processes can assume that PATH env var that they are started with contains DSC home directory.

Note: the above behavior will not take place if DSC_RESOURCE_PATH env var is defined.

dsc/tests/dsc_osinfo.tests.ps1 Outdated Show resolved Hide resolved
dsc_lib/src/discovery/command_discovery.rs Show resolved Hide resolved
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jul 25, 2024
Merged via the queue into PowerShell:main with commit 466b4f6 Jul 25, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dsc should add it's home directory to PATH to find included resources
2 participants