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

Configuration does not ensure that required modules are present #4878

Open
JohnMcPMS opened this issue Oct 14, 2024 · 0 comments
Open

Configuration does not ensure that required modules are present #4878

JohnMcPMS opened this issue Oct 14, 2024 · 0 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@JohnMcPMS
Copy link
Member

JohnMcPMS commented Oct 14, 2024

Brief description of your issue

The configuration processor ensures that the target module is present, but it does not ensure that any subsequent required modules are present. This can lead to a situation where the resource module is present, but the module cannot be loaded due to the missing dependencies.

Steps to reproduce

> Install-Module Microsoft.WinGet.DSC
> Uninstall-Module Microsoft.WinGet.Client
> [Apply any configuration using Microsoft.WinGet.DSC]

Expected behavior

Configuration installs any required modules to operate.

Actual behavior

An error like:
The required module 'Microsoft.WinGet.Client' is not loaded. Load the module or remove the module from 'RequiredModules' in the file...

Environment

1.9 era

@JohnMcPMS JohnMcPMS added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Oct 14, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Oct 14, 2024
@JohnMcPMS JohnMcPMS removed the Needs-Triage Issue need to be triaged label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

1 participant