-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.42.1: unfortunate change in the yqlib.NewYamlEncoder( ) API #1964
Comments
Just to clarify: The actual fix on the user code side is trivial, it's just it is surprising it had to be done, and that the default was not working well because of the coloring. |
IOM, setting the |
Yeah fair call, I'll change the default to false for when using the library. The semantic versioning atm is for the CLI - and I'd only increment the major version for a breaking CLI interface change. I really should extract the lib parts to another go package and then that can have its own semantic versioning. Just haven't got around to it sorry! |
Fixed in v4.43.1 |
Describe the bug
Two problems I see with the v4.42.1 version of yqlib:
indent
andcolorise
, these are now in the passedYamlPreferences
NewDefaultYamlPreferences
have the coloring turned on -- which means when porting to the new version, extra effort needs to be performed because the defaults don't work (edit: I'm saying "don't work," because with the defaults the encoder is not producing valid YAML, but a "colored YAML")Version of yq: 4.42.1
Expected behavior
The text was updated successfully, but these errors were encountered: