- Notifications
You must be signed in to change notification settings - Fork45
Fix resourceCache to return proper modules when PS modules are installed during run#748
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Gijsreyn commentedApr 11, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@SteveL-MSFT, if you have some time, you might taking a glimpse? In the issue, I've also mentioned steps to reproduce it through the module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you repro the original issue by having a test case that executes a test resource that adds a new test resource?
992c730
toc8da022
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Should be good to go@SteveL-MSFT . Workstation did not cooperate today. I hadn't re-requested a review yet, you sharp eye ;) |
Uh oh!
There was an error while loading.Please reload this page.
9fc9a80
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
This PR addresses the issue described in#745. When modules are installed during a document being applied, the subsequent modules that are checked in the cache are overwritten. Example:
Invoke-DscCacheRefresh -Module '<module>'
, flushing out the cache with only that particular module.It's a pretty rough edge case and quite interesting to debug. Nevertheless, there isn't any test added because it would either introduce an external dependency or require internal work to be implemented. Of course, I can be wrong on this and would appreciate some help to write one.