From c7927d361c816b053ee9dcc6b31162df4676170e Mon Sep 17 00:00:00 2001 From: MdSahil-oss Date: Wed, 24 Jan 2024 20:03:38 +0530 Subject: [PATCH] fix(yamlmerger): Update RecursiveMerge to support ScalarNode kind Signed-off-by: MdSahil-oss --- internal/yamlmerger/yamlmerger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/yamlmerger/yamlmerger.go b/internal/yamlmerger/yamlmerger.go index 90fca5b9f..c090a96cc 100644 --- a/internal/yamlmerger/yamlmerger.go +++ b/internal/yamlmerger/yamlmerger.go @@ -54,7 +54,7 @@ func RecursiveMerge(from, into *yaml.Node) error { } case yaml.ScalarNode: // SA4006 these variables represent pointers and are propagated outside of `recursiveMerge` - into = from //nolint:staticcheck + into.Value = from.Value //nolint:staticcheck case yaml.SequenceNode: for _, fromItem := range from.Content { foundFrom := false