We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
Required for #210.
Sorry, something went wrong.
Support for cross module rule dependencies #248
0c7f1e3
Support for cross module rule dependencies #248 (#582)
9263f61
BernieWhite
Successfully merging a pull request may close this issue.
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.
The text was updated successfully, but these errors were encountered: