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

fix: win_psDscAdapter targeted module cache refreshes#787

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
SteveL-MSFT merged 4 commits intoPowerShell:mainfromhaodeon:fix/diff-get-all
May 19, 2025

Conversation

haodeon
Copy link
Contributor

@haodeonhaodeon commentedMay 7, 2025
edited
Loading

PR Summary

Fixes#745 by ensuring a fullGet-DscResource refresh is triggered when$env:PSModulePath changes.

Also reorders the cache staleness checks to prioritize detectingPSModulePath differences before evaluating stale resource entries.

Fixes#807 by ensuring a full cache refresh is triggered when cache is cold. It now builds a list$namedModules which determines whether targeted module refresh occurs, using this list if it does.

PR Context

When$env:PSModulePath changes, the cache may be rebuilt incorrectly if$Module remains set. The module environment may have changed outside the scope defined by$Module, but the refresh will only consider the provided modules.

When a module is deleted, the stale entries check will detect the change and initiate a cache refresh, skipping the check for stale paths. If the removed module is not in$Module, the stale entries get captured in$existingDscResourceCacheEntries and remain in the refreshed cache.

A change inPSModulePath should result in a full cache refresh and take priority over stale resource entries.

@haodeon
Copy link
ContributorAuthor

Now also fixes#807

@haodeonhaodeonforce-pushed thefix/diff-get-all branch 2 times, most recently from6c16fae to6fd7145CompareMay 13, 2025 21:59
@haodeonhaodeon changed the titlefix: Get all resources when PSModulePath changesfix: win_psDscAdapter targeted module cache refreshesMay 19, 2025
@SteveL-MSFTSteveL-MSFT added this pull request to themerge queueMay 19, 2025
Merged via the queue intoPowerShell:main with commit35dabc9May 19, 2025
4 checks passed
@haodeonhaodeon deleted the fix/diff-get-all branchMay 27, 2025 12:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SteveL-MSFTSteveL-MSFTSteveL-MSFT approved these changes

@mgreenegitmgreenegitAwaiting requested review from mgreenegit

@theJasonHelmicktheJasonHelmickAwaiting requested review from theJasonHelmick

@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.

win_psDscAdapter targeted module cache refreshes lead to broken cache state win_psDscAdapter fails to find resources during config run
2 participants
@haodeon@SteveL-MSFT

[8]ページ先頭

©2009-2025 Movatter.jp