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.
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.
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
Actual behavior
Error details
No response
Environment data
Version
v2
Visuals
No response