task
task copied to clipboard
Declaration order matters when nesting dynamic vars
As far as I know you can nest dynamic variables in each other, but this behavior is depends on declaration order. Looks like a bit confusing. I didn't find this info in docs.
vars:
A:
sh: echo "a {{.B}}"
B:
sh: echo "b {{.C}}"
C:
sh: echo "c"
cmd
vars:
C:
sh: echo "c"
B:
sh: echo "b {{.C}}"
A:
sh: echo "a {{.B}}"
cmd a b c