winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Configuration does not ensure that required modules are present

Open JohnMcPMS opened this issue 1 year ago • 0 comments

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 avatar Oct 14 '24 17:10 JohnMcPMS