Open alvarogonzalez-packlink opened 1 year ago
I think you've installed a recent version of yamllint, for which the lint output formatting has changed a bit. I need to work to bring yamlfixer back up-to-date wrt yamllint, unfortunately this will have to wait until I've got more time on my hands. Please could you install an earlier version of yamllint in the meantime, this should solve this problem (yamllint v1.26 should be fine) ?
Yep, now that I check, last yamllint version working is 1.28.0. With 1.29.0 fails.
1.29 says:
./file.yaml:5:1: [error] wrong indentation: expected at least 1 (indentation)
1.28 says:
./file.yaml:5:1: [error] wrong indentation: expected 2 but found 0 (indentation)
Maybe, meanwhile, the install_requires
can be changed from yamllint >= 1.27.1
to `yamllint >= 1.27.1, <1.29' or something like that?
Edit: the change: adrienverge/yamllint#491
Yes in the meantime that could be a solution. Anyway thanks a lot for your feedback and your help in diagnosing this problem. Have a nice day.
Thank you too!
1️⃣ Description
If I try to run yamlfixer on a simple
kustomization.yaml
file where the resources section is unindented, I get a ValueError exception📑 Steps to Reproduce
Steps to reproduce the behavior:
I have this
kustomization.yaml
:I run yamlfixer on it and it fails:
I indent the resources section:
Now it works perfectly:
2️⃣ Expected behavior
3️⃣ Scripts
N/A
ℹ️ Environment details