Open dionysius opened 1 year ago
Replaced yq
with gojq
for the manipulation steps since I anyway wanted to move away from python helpers. gojq --yaml-input --yaml-output
seems not to do word wrapping so I don't run into this issue anymore. Bug is still valid though.
@dionysius It seems caused by goccy/go-yaml. I'm trying to fix it here: https://github.com/goccy/go-yaml/pull/342
Testcase:
Result:
The handling of
\n
in strings seems to be fine, the issue seems to be:\
indicating the line continues on the next line (baz
->special
+special
->multiline
)\
indicating begin of space characters (multiline
)I ran into a diff issue after using
yq
to manipulate some yaml files. The problem is not yq tho, the resulting yaml seems to be a correct yaml. If you copy those two yamls to e.g. https://www.yamldiff.com/ it doesn't yield a diff: