Skip to content
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

Declaration order matters when nesting dynamic vars #1626

Open
sedyh opened this issue Apr 27, 2024 · 1 comment
Open

Declaration order matters when nesting dynamic vars #1626

sedyh opened this issue Apr 27, 2024 · 1 comment
Labels
area: docs Changes related to documentation.

Comments

@sedyh
Copy link

sedyh commented Apr 27, 2024

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
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Apr 27, 2024
@vmaerten
Copy link
Collaborator

Hello @sedyh
Yes declaration order matters, it's on purpose. I'll add it to the doc

@vmaerten vmaerten added area: docs Changes related to documentation. and removed state: needs triage Waiting to be triaged by a maintainer. labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Changes related to documentation.
Projects
None yet
Development

No branches or pull requests

3 participants