William Floyd 2026-05-12 14:59:57 -07:00
parent 862d805c80
commit db1456532e
No known key found for this signature in database
GPG Key ID: B3EEEDD81893CAF9
2 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,11 @@ const (
func createStringScalarNode(stringValue string) *CandidateNode {
var node = &CandidateNode{Kind: ScalarNode}
node.Value = stringValue
node.Tag = "!!str"
if stringValue == "<<" {
node.Tag = "!!merge"
} else {
node.Tag = "!!str"
}
return node
}

View File

@ -189,7 +189,7 @@ func mergeObjects(d *dataTreeNavigator, context Context, lhs *CandidateNode, rhs
log.Debugf("going to applied assignment to LHS: %v with RHS: %v", NodeToString(lhs), NodeToString(candidate))
if candidate.Tag == "!!merge" {
if candidate.Tag == "!!merge" && !candidate.IsMapKey {
continue
}