RamblingCookieMonster / PSDepend

PowerShell Dependency Handler
MIT License
285 stars 76 forks source link

Modules with own dependencies #29

Closed Plork closed 7 years ago

Plork commented 7 years ago

Still haven't gotten to the bottom of this. But when a module has it's own dependencies

ie.

    RequiredModules = @(
        @{
            ModuleName = 'ModuleName'
            ModuleVersion = '1.0.0'
        }
    )

PsDepend goes and finds that module but it stops processing the original module because it has found a match.

for Example Module A requires Module B with version 1.0.0. When I invoke-psdepend it processes Module A and stops when it says:


VERBOSE: Found existing module [Module B]
VERBOSE: You have the requested version [1.0.0] of [Module B]

I tried making it 'DependsOn' in the requirement file but then it just shows VERBOSE: You have the requested version [1.0.0] of [Module B] twice

Plork commented 7 years ago

My bad, an idiot messed with the psd1 file of Module B ;) no idea who ... /whistles