You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Option deep_copy_list working incorrectly with utils_deep_merge_yaml (not checked utils_deep_merge_json , but probably same).
deep merge configured with : append_list = false , deep_copy_list = true
Input of 2 yaml:
---
test:
my_list:
- item1
- item2
---
test:
my_list:
- item1
- item3
- item4
Getting as result:
---
test:
my_list:
- item1
- item2
so 2nd Yaml list ignored.
In version 1.23 if append_list and deep_copy_list both enabled, result as above, in versions below 1.23 result will be as expected, but probably because append_list in actions.
Merge any yaml (even from example) with utils_deep_merge_yaml and deep_copy_list enabled
Screenshots
No response
Environment
OS [Mac M3, Mac Intel, Linux], module version 1.23, 1.22, 1.21, 1.20, 1.19, 1.18
Additional Context
Need to merge complex yaml files, with lists in them, in multiple cases it is required to have merge of lists and ensure we not have duplicates in final outputs, so for that we trying to use deep_copy_list , but seems doesn't work.
The text was updated successfully, but these errors were encountered:
Guys, @aknysh , @goruha , @osterman you have complete regression in provider after version 1.22, append list and deep merge doesn't work anymore. Is this project considered as absolute and not going to be maintained and or accept new PRs ?
I found the issue and it is not related to cloudposse provider and Atmos, it is issue within mergo. But my question about contribution and accepting PRs are still valid.
Describe the Bug
Option
deep_copy_list
working incorrectly withutils_deep_merge_yaml
(not checkedutils_deep_merge_json
, but probably same).deep merge configured with :
append_list = false
,deep_copy_list = true
Input of 2 yaml:
Getting as result:
so 2nd Yaml list ignored.
In version 1.23 if
append_list
anddeep_copy_list
both enabled, result as above, in versions below 1.23 result will be as expected, but probably becauseappend_list
in actions.Expected Behavior
Steps to Reproduce
Merge any yaml (even from example) with
utils_deep_merge_yaml
anddeep_copy_list
enabledScreenshots
No response
Environment
OS [Mac M3, Mac Intel, Linux], module version 1.23, 1.22, 1.21, 1.20, 1.19, 1.18
Additional Context
Need to merge complex yaml files, with lists in them, in multiple cases it is required to have merge of lists and ensure we not have duplicates in final outputs, so for that we trying to use
deep_copy_list
, but seems doesn't work.The text was updated successfully, but these errors were encountered: