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

Allow PowerShellGroup to override psmodulepath #312

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

anmenaga
Copy link
Collaborator

@anmenaga anmenaga commented Feb 7, 2024

PR Summary

Fix #285

PR Context

The PSModulePath env var is clobbered within the group resource (thus PSDSC is still found by the default env var). The string value would be PS syntax and expanded within the group resource.

properties:
  psmodulepath: $env:PSModulePath;$env:LOCALAPPDATA\Microsoft\WinGet\Configuration\Modules
  resources: ...

@SteveL-MSFT SteveL-MSFT changed the title Allow PowerShellGroup to have additional module paths Allow PowerShellGroup to override psmodulepath Feb 8, 2024
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Feb 8, 2024
Merged via the queue into PowerShell:main with commit d0f49d3 Feb 8, 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.

Allow DSC/PowerShellGroup to have additional module paths
2 participants