Replies: 1 comment
-
@andreynering would you be willing to merge this feature if I (or someone) implemented it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
task
for configuring servers, and a common use case that I'm having is this:I have a
Taskfile.yaml
for managingwebhook
(https://github.com/adnanh/webhook specifically).webhook
is configured with a single JSON file containing an array of webhook definitions.I also have multiple
Taskfile.yaml
for different projects, and each one wants to register its own webhooks, which is done with a different task in each project.To solve this, I make a script that takes all the
.json
files inside a directory and combines them in a single file in/etc/webhook.conf
.The problem is, I need a way to tell
task
that all the "create json file with webhook" tasks need to be run before the "combine all the json files" task without making thewebhook
tasks know about every single project explicitly. Right now, I can't set a "reverse dependency", saying that a task should always run before another task if the given task is planned to be executed.Right now, my solution is to manually split the root Taskfile in "phases" to make sure that the "combine all the json files" task is executed last.
This is roughly how it looks now:
And this is how it could look with something like a
before:
setting implemented.I've seen the proposal #1409 , but I think it introduces a "before/after arms race", in which you'll eventually need to have tasks running after a task that already has a
run: after
setting. That's why I'm making this proposal instead.Beta Was this translation helpful? Give feedback.
All reactions