Inconsistent formatting depending on platform: comment above list item moved below it on Windows #198
Labels
yaml_v3_problem
A bug in the underlying yaml library. These issues are vastly harder to fix.
Hi,
thanks for the great library. ❤️
I found an inconsistency between a run on Ubuntu 22.04 and Windows 11.
I run
yamlfmt
via pre-commit. In a second step I tried to pin the go-lang version by addinglanguage_version: 1.22.5
to the hook definition..pre-commit-config.yaml
.pre-commit-config.yaml
Originally I was using those formatter arguments, but removed them for the output file below.
️️️
Diff
Before: demo_yamlfmt_comment_swap.yaml
️️️
Input file
️️️
After: demo_yamlfmt_comment_swap.yaml
️️️
Output file
️️️
The same file passes yamlfmt on linux in both versions.
Is there some workaround to have the same behavior cross platform?
The text was updated successfully, but these errors were encountered: