Closed BernieWhite closed 4 years ago
Currently it is possible for a rule to depend on a rule in a completely different module. i.e.
Rule 'Rule1' -DependsOn 'OtherModule\Rule2' { }
However for Rule2 to be discovered the module OtherModule must be included in the list of modules provided to Invoke-PSRule.
Rule2
OtherModule
Invoke-PSRule
For example: Invoke-PSRule -Module Module1,OtherModule.
Invoke-PSRule -Module Module1,OtherModule
This is not ideal, because it also will execute any rules in OtherModule by default unless -Name Rule1 is also added to the Invoke-PSRule call.
-Name Rule1
Ideally, a cross module reference should automatically include the specific rule referenced as a dependency.
This is also related to #170.
Required for #210.
Currently it is possible for a rule to depend on a rule in a completely different module. i.e.
However for
Rule2
to be discovered the moduleOtherModule
must be included in the list of modules provided toInvoke-PSRule
.For example:
Invoke-PSRule -Module Module1,OtherModule
.This is not ideal, because it also will execute any rules in
OtherModule
by default unless-Name Rule1
is also added to theInvoke-PSRule
call.Ideally, a cross module reference should automatically include the specific rule referenced as a dependency.
This is also related to #170.