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

Add ability to declare dependencies using requires/provides blocks #22

Open
ssbarnea opened this issue Apr 5, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ssbarnea
Copy link
Member

ssbarnea commented Apr 5, 2021

Once we have a configuration file, user should be able to declare dependencies like:

# Example config that will prevent `build` from running unless `lint` already passed.
actions:
    build:
       requires: lint

Please keep in mind that the commands themselves can be exposed by different tools and that this configuration only add extra metadata to those. As you can see lint may not be defined inside the config, but this example should be valid as is.

Obviously that no lint action is found to be exposed by any known tool, an error similar to Unknown action lint was required by build. should be displayed.

That feature is very useful for cases where multiple tools are used which do not glue together well (tox and npm for example).

While I am inclined to used requires/provides pair, I do also consider before/after as alternatives. If you have any preference feel free to share it before we implement this feature.

@ssbarnea ssbarnea added the enhancement New feature or request label Apr 5, 2021
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

No branches or pull requests

1 participant