brancz / gojsontoyaml

Simple tool to convert json to yaml written in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long line wrapping jitter across "versions"

underrun opened this issue · comments

i've used different commits of gojsontoyaml over the years. the behavior of wrapping long lines changes depending on when had go geted as follows:

  • Pre May 2020: long lines wrap
  • Between May 2020 and Dec 2020: long lines do not wrap
  • After Dec 2020: long lines wrap

... and to top that off, at some point in the future with yaml.v3 the default will again be the long lines will not wrap...

This is because of this fun: go-yaml/yaml#670 combined with the timing of updating the go mod for yaml.v2 in this repo (2.2.8 pre may, 2.3.0 may, 2.4.0 dec)

I'd love it if the line wrapping could shift back to the future of not doing it.