Skip to content
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

yamlfix is not idempotent #273

Open
schenker opened this issue Jan 29, 2024 · 0 comments
Open

yamlfix is not idempotent #273

schenker opened this issue Jan 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@schenker
Copy link

schenker commented Jan 29, 2024

Hi, running yamlfix 1.16.0 with default configuration once yields different results then running it twice for the following input:

#

version: "1.0"

#

#
test:
  files:

E.g.

$ cat test.yaml 
#

version: "1.0"

#

#
test:
  files:

$ yamlfix test.yaml 
[+] YamlFix: Fixing files
[+] Fixed test.yaml
[+] Checked 1 files: 1 fixed, 0 left unchanged

$ cat test.yaml 
---
#
version: '1.0'

#
#
test:
  files:

$ yamlfix test.yaml
[+] YamlFix: Fixing files
[+] Fixed test.yaml
[+] Checked 1 files: 1 fixed, 0 left unchanged

$ cat test.yaml 
---
#
version: '1.0'
#
#
test:
  files:

@schenker schenker added the bug Something isn't working label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant