PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
60 stars 14 forks source link

Fix duplicated resources error #113

Open anmenaga opened 1 year ago

anmenaga commented 1 year ago

Prerequisites

Steps to reproduce

When a resource with the same name found in several places in PSModulePath, DSC v2 returns an error suggesting user to manually remove one of the locations. DSC should be able to automatically resolve such situation and for example use the first occurrence of the resource.

Expected behavior

N/A

Actual behavior

N/A

Error details

No response

Environment data

N/A

Version

v2

Visuals

No response

raandree commented 1 year ago

This problem caused us a lot of trouble, and in the [DscWorkshop] (https://github.com/dsccommunity/DscWorkshop) we had to introduce a number of checks and workarounds to prevent DSC from detecting the duplicates.