Proposal: Add RunBefore/RunAfter methods. #3730
patriksvensson
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose we add two new methods to Cake tasks:
RunBefore(string task)
RunAfter(string task)
By introducing the
RunAfter
andRunBefore
, we add more flexible ways of composing the task graph.Changes
This would mean that the meaning of
IsDependentOn
have to change as well. TheIsDependentOn
method is now just a way of telling Cake that the task should run after another task (something thatRunAfter
would replace).The
Dependent
part should be respected, and if the dependent task was skipped for any reason, the task with the dependency should fail. This will introduce a slight semantic change, but I think it won't have a big impact since this is how it's used today (but not enforced by Cake).Beta Was this translation helpful? Give feedback.
All reactions