PowerShell / DSC

This repo is for the DSC v3 project
MIT License
135 stars 22 forks source link

Adapters in resource path get evaluated twice #368

Closed mgreenegit closed 3 months ago

mgreenegit commented 3 months ago

Prerequisites

Steps to reproduce

dsc resource list

Expected behavior

each adapter is only processed once

Actual behavior

each adapter is processed twice

Error details

This happens because we are adding the path to dsc.exe to paths, even if it is already there
https://github.com/mgreenegit/DSC/blob/4bb4b01e0eae26836c95b9fa339a32dec33fad85/dsc_lib/src/discovery/command_discovery.rs#L77-L78

Environment data

7

Version

latest

Visuals

No response