From ccc34b50229a4e92eceb445d2575c0adfb685f4f Mon Sep 17 00:00:00 2001 From: furkanu-work <167775399+furkanu-work@users.noreply.github.com> Date: Mon, 22 Sep 2025 17:06:08 +0100 Subject: [PATCH] Add version information to fix-merge-anchor option --- operators/traverse-read.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operators/traverse-read.md b/operators/traverse-read.md index d418bc00..1c1a85ae 100644 --- a/operators/traverse-read.md +++ b/operators/traverse-read.md @@ -3,7 +3,7 @@ This is the simplest (and perhaps most used) operator. It is used to navigate deeply into yaml structures. -## NOTE --yaml-fix-merge-anchor-to-spec flag +## NOTE --yaml-fix-merge-anchor-to-spec flag (v4.47.1 [#2110](https://github.com/mikefarah/yq/issues/2110)) `yq` doesn't merge anchors `<<:` to spec, in some circumstances it incorrectly overrides existing keys when the spec documents not to do that. To minimise disruption while still fixing the issue, a flag has been added to toggle this behaviour. This will first default to false; and log warnings to users. Then it will default to true (and still allow users to specify false if needed)