Skip to content

Cannot expand variable in other variable on the top of line #52

Open
@mitsuru793

Description

@mitsuru793

Thank you very much for this project!
I found a bug.

This yaml file not works.

error loading configuration: yaml: line 10: did not find expected key

I got the above error.

run:
  exec: echo {{.script}}

variables:
  root: $(echo $HOME/myproject/)
  script:  {{.root}}/index.php

However this is works.

run:
  exec: echo {{.script}}

variables:
  root: $(echo $HOME/myproject/)
  script:  index.php/{{.root}}  # swap

I'm restricted where expanding variable only after string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions