Skip to content

Exported vars are not evaluated recursively in the context of nested params #862

@civitaspo

Description

@civitaspo

summary

Exported vars are not evaluated recursively in the context of nested params

the dig file to reproduce

_export:
  a: aaa
  b: bbb
  c: ccc

+a:
  _export:
    d: ${a}-${b}-${c}

  +b:
    _export:
      e: ${d}
      f:
        g: ${d}
    +c:
      echo>: ${d}
    +d:
      echo>: ${e}
    +e:
      echo>: ${f.g}

the result of the dig file

You can see that only the nested param ${f.g} is not evaluated recursively.

$ digdag run ./var.dig --no-save
2018-09-14 13:18:02 +0900: Digdag v0.9.27
2018-09-14 13:18:03 +0900 [WARN] (main): Using a new session time 2018-09-14T00:00:00+00:00.
2018-09-14 13:18:03 +0900 [INFO] (main): Starting a new session project id=1 workflow name=var session_time=2018-09-14T00:00:00+00:00
2018-09-14 13:18:04 +0900 [INFO] (0016@[0:default]+var+a+b+c): echo>: aaa-bbb-ccc
aaa-bbb-ccc
2018-09-14 13:18:05 +0900 [INFO] (0016@[0:default]+var+a+b+d): echo>: aaa-bbb-ccc
aaa-bbb-ccc
2018-09-14 13:18:05 +0900 [INFO] (0016@[0:default]+var+a+b+e): echo>: ${a}-${b}-${c}
${a}-${b}-${c}
Success.
  * Use --session <daily | hourly | "yyyy-MM-dd[ HH:mm:ss]"> to not reuse the last session time.
  * Use --rerun, --start +NAME, or --goal +NAME argument to rerun skipped tasks.

Ref

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions