diff --git a/internal/pkg/config/edit.go b/internal/pkg/config/edit.go index f65b6d32..9d2678d4 100644 --- a/internal/pkg/config/edit.go +++ b/internal/pkg/config/edit.go @@ -312,7 +312,7 @@ func allScalars(nodes []*yaml.Node) bool { return true } -// encodeYAML never wraps lines, go-yaml wraps more-indented lines of folded scalars until https://github.com/yaml/go-yaml/pull/441 is released. +// encodeYAML never wraps lines, re-encoding must not reflow long values. func encodeYAML(node *yaml.Node) ([]byte, error) { return yaml.Dump(node, yaml.WithV3Defaults(), yaml.WithIndent(2), yaml.WithLineWidth(-1)) }