Fixed merged anchor reference problem #1482

This commit is contained in:
Mike Farah
2023-03-01 13:45:35 +11:00
parent cf8cfbd865
commit 3f1f66a8ee
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ func deepCloneWithOptions(node *yaml.Node, cloneContent bool) *yaml.Node {
Tag: node.Tag,
Value: node.Value,
Anchor: node.Anchor,
Alias: deepClone(node.Alias),
Alias: node.Alias,
HeadComment: node.HeadComment,
LineComment: node.LineComment,
FootComment: node.FootComment,