Summary
When using Himl’s (himl==0.15.2 from pip) nested interpolation ({{foo.bar}}) inside a longer string, the interpolation silences the surrounding text and resolves only to the raw value. But when using the same interpolation alone, it works correctly.
Steps to reproduce
-
Create foo.yaml:
-
Create baz.yaml:
resources:
test:
type: example:Test
properties:
path: "hello {{foo.bar}} world"
-
Run:
himl-config-merger foo.yaml baz.yaml > merged.yaml
-
Expected in merged.yaml:
resources:
test:
properties:
path: "hello 42 world"
-
Actual result:
resources:
test:
properties:
path: 42
— The string collapses to just 42.
-
Alternative case that does work:
→ Correctly interpolates to:
Any help would be much appreciated!
Summary
When using Himl’s (
himl==0.15.2from pip) nested interpolation ({{foo.bar}}) inside a longer string, the interpolation silences the surrounding text and resolves only to the raw value. But when using the same interpolation alone, it works correctly.Steps to reproduce
Create
foo.yaml:Create
baz.yaml:Run:
himl-config-merger foo.yaml baz.yaml > merged.yamlExpected in
merged.yaml:Actual result:
— The string collapses to just
42.Alternative case that does work:
→ Correctly interpolates to:
Any help would be much appreciated!