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

Windows line endings not supported #65

Closed
TobsCore opened this issue Dec 20, 2019 · 1 comment · Fixed by #66
Closed

Windows line endings not supported #65

TobsCore opened this issue Dec 20, 2019 · 1 comment · Fixed by #66

Comments

@TobsCore
Copy link

When yaml files are read, that have windows line endings (CRLF), the application fails, as it does not recognize the YAML file correctly.

I created a small example repository that showcases the issue. You can check it out at TobsCore/yaml-crlf-error.

The error that occurs is as follows:

panic: Cannot parse yaml [2:1] unexpected key name
       1 | ---
    >  2 | name: TobsCore
       3 | age: 40
          ^

goroutine 1 [running]:
main.main()
	/tmp/yaml-crlf-error/main.go:26 +0x240
exit status 2
@goccy
Copy link
Owner

goccy commented Dec 22, 2019

@TobsCore

Thanks for the reporting !
I fixed with #66 and released as v1.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants