Skip to content

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

Open
@ssbarnea

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions