You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a gigantic compose.yaml file that didn't work. jq didn't properly identify the failing line, but YAMLLint did.
I have cleaned up my compose.yaml with a smaller reproducing case.
alpha:
beta:
gamma:
"this is really the faulty line:foo"
- "this is an okay line:oh yeah!!"
When I run yq it complains about line 2.
% yq compose.yaml
Error: bad file 'compose.yaml': yaml: line 2: did not find expected key
YAMLlint complains on line 5, it's one line off but it really helped me pinpoint the error when the file was hundreds of lines long. My original file had many entries on "gamma"-level.
I had a gigantic compose.yaml file that didn't work. jq didn't properly identify the failing line, but YAMLLint did.
I have cleaned up my compose.yaml with a smaller reproducing case.
When I run yq it complains about line 2.
YAMLlint complains on line 5, it's one line off but it really helped me pinpoint the error when the file was hundreds of lines long. My original file had many entries on "gamma"-level.
https://www.yamllint.com/
The text was updated successfully, but these errors were encountered: