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

Feature Request: Allow subsets of requirements #184

Open
tabrindle opened this issue Mar 6, 2018 · 0 comments
Open

Feature Request: Allow subsets of requirements #184

tabrindle opened this issue Mar 6, 2018 · 0 comments
Assignees

Comments

@tabrindle
Copy link
Contributor

tabrindle commented Mar 6, 2018

Consider a project with an optional dependency based on what scripts are run, or who is running them.
In some cases, you may want to block a script with a non zero exit code from solidarity failing a check in one script, but not another. Some of these cases might be achieved by different solidarity files, but this could be unsustainable if there are many different sets of rules to run.

Example: you want to check for a certain git author email before commit, but that rule shouldn't block someone from installing or building the project.

Second example: you have an optional dependency on docker, but only certain developers will need that for certain tasks. Docker would be unnecessary for the rest of the team.

Third example: Having a different set of requirements for ci

This could be passed via a --set option like so:

solidarity --set development || solidarity --set testing || `solidarity

@GantMan GantMan self-assigned this Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants