Skip to content

Commit

Permalink
otk: handle missing suport for joins with vars
Browse files Browse the repository at this point in the history
This commit fixes the issue that the following snippet:
```
otk.version: 1

otk.define:
  default:
    modifications:
      language: en_US.UTF-8

  user:
    modifications:
      language: nl_NL.UTF-8

  modifications:
    otk.op.join:
      values:
        - ${default.modifications}
        - ${user.modifications}

otk.target.osbuild:
  lang: ${modifications.language}
```
does not work because no var substitution was performed in the
join.
  • Loading branch information
mvo5 committed Oct 31, 2024
1 parent 553115f commit 0c28edf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/data/base/19-op-join-with-vars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"lang":"nl_NL.UTF-8",
"version": "2"
}
19 changes: 19 additions & 0 deletions test/data/base/19-op-join-with-vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
otk.version: 1

otk.define:
default:
modifications:
language: en_US.UTF-8

user:
modifications:
language: nl_NL.UTF-8

modifications:
otk.op.join:
values:
- ${default.modifications}
- ${user.modifications}

otk.target.osbuild:
lang: ${modifications.language}

0 comments on commit 0c28edf

Please sign in to comment.