PSDesiredStateConfiguration icon indicating copy to clipboard operation
PSDesiredStateConfiguration copied to clipboard

Fix duplicated resources error

Open anmenaga opened this issue 1 year ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues.

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

anmenaga avatar Jul 19 '23 21:07 anmenaga

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.

raandree avatar Jul 20 '23 21:07 raandree