-
-
Notifications
You must be signed in to change notification settings - Fork 636
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
Support loops in dependencies as well #1299
Comments
Perhaps this is obvious to others, but is there a reason this isn't desirable?
If it's because deptask isn't run in parallel, I wonder about your thoughts on #1300. |
sorry for not mentioning it, but the reason is parallelism, as you mentioned. i don't like the "parallel for" syntax too much, as there's no reason to specialize it. version: '3'
tasks:
deptask:
desc: dependency task
cmds:
- echo dependency foo {{.FOO}}
default:
desc: some task
cmds:
- parallel:
- echo first command
- for: ['foo', 'bar']
task: deptask
vars:
FOO: "DEP-{{.ITEM}}"
- echo last command i.e. specifying all the parallel commands in a separate group. i think it is a better solution, but having loops support in "deps" (similar to "cmds") is good enough for my usecase. |
Would really love to see this feature too! |
+1 on the feature |
Allow specifying loops in task dependencies the same way they can be used in cmds
Taskfile:
Expected output
Actual output
The text was updated successfully, but these errors were encountered: