Merge key with multiple levels, invalid merge-expand output
commandline utility to manipulate YAML files
Brought to you by:
anthon
Hi! I noticed tool doesnt produce correct results on a bit complex YAML key merge operation.
yaml merge-expand 1.yaml output.yaml
In attached example chromeos_nocompress_variants supposed to have override of default variables.
Any indication of what is incorrect and/or a program to reproduce that?
Doesn't it load, do you get wrong data, do you get wrong output when dumped?
It generate wrong data, here is example what is in output:
but supposed to be
Last edit: Denys Fedoryshchenko 2022-08-02
python yaml have different opinion:
you can just run that and view merged result, which does replace values such as "cros://chromeos-5.10/x86_64/chromeos-amd-stoneyridge.flavour.config+x86-chromebook" to "cros://chromeos-5.10/x86_64/chromeos-amd-stoneyridge.flavour.config+x86-chromebook+CONFIG_MODULE_COMPRESS=n"
and compare it with result your tool is generating on
To remove unnecessary noise, here is a bit different example that can be compared same way: