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

Fix builds on Windows by forcing Unix style EndOfLines on the repo #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zlamma
Copy link

@zlamma zlamma commented Jun 20, 2016

Fix by using the per repository .gitattributes overrides

Rationale: The Windows' default is 'auto', which will result in checking out CRLF and, as a result, eslint and parser tests complaining. None of them can be made dynamic, so this is the only real option.

Windows editors support Unix EOLs just fine, so this should really be OK. The worst that can happen is someone that didn't run tests commits Windows EOLs in his fork, which will get caught by the eslint and tests checks on the pull requests.

Fix by using the [per repository .gitattributes overrides](https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings)

Rationale: The Windows' default is 'auto', which will result in checking out CRLF and, as a result, eslint and parser tests complaining. None of them can be made dynamic, so this is the only real option.

Windows editors support Unix EOLs just fine, so this should really be OK. The worst that can happen is someone that didn't run tests commits Windows EOLs in his fork, which will get caught by the eslint and tests checks on the pull requests.
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 this pull request may close these issues.

1 participant