Skip to content

Is it possible to create a "handler" recipe? #1179

Answered by casey
antonalekseev asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't currently a way to do this. I've been thinking about it, but not sure how to do it in a reasonable way. One idea, which I don't think is particularly good, is to add a new kind of dependency:

foo:

bar: || foo

Dependencies after only || run if the recipe fails, analogously to the current && dependency syntax, which runs after a recipe if it succeeds. I feel like this is probably too brittle, and won't work for enough use-cases to be worth it.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@patmaddox
Comment options

@casey
Comment options

@jpeeler
Comment options

@casey
Comment options

casey Jan 6, 2023
Maintainer

Answer selected by antonalekseev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants