Skip to content
New issue

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

Improve cross module dependency support #248

Closed
BernieWhite opened this issue Jul 28, 2019 · 1 comment · Fixed by #582
Closed

Improve cross module dependency support #248

BernieWhite opened this issue Jul 28, 2019 · 1 comment · Fixed by #582
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@BernieWhite
Copy link
Member

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.

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 the Invoke-PSRule call.

Ideally, a cross module reference should automatically include the specific rule referenced as a dependency.

This is also related to #170.

@BernieWhite BernieWhite added the enhancement New feature or request label Jul 28, 2019
@BernieWhite
Copy link
Member Author

Required for #210.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant