Skip to content

Conversation

Gijsreyn
Copy link
Contributor

@Gijsreyn Gijsreyn commented Sep 7, 2025

PR Summary

This pull request addresses an issue when $env:PSModulePath contains empty entries, the PSDesiredStateConfiguration v1.1 module errors out and returns empty results.

Rather than the suggestion in the fixed issue, a reset should always happen because of the line 158 and 170

PR Context

Fix #1095

@Gijsreyn Gijsreyn requested a review from SteveL-MSFT September 8, 2025 15:40
@Gijsreyn Gijsreyn force-pushed the gh-1095/main/fix-empty-winpspath-handling branch from 8cde7cf to e49334d Compare September 9, 2025 01:34
@Gijsreyn Gijsreyn requested a review from SteveL-MSFT September 9, 2025 01:34
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 9, 2025
Merged via the queue into PowerShell:main with commit ec8fd50 Sep 9, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle empty path segment in PSModulePath for Microsoft.Windows/WindowsPowerShell adapter resource
2 participants