kristiandupont / schemalint

Lint database schemas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRLF line endings in npm release

davecardwell opened this issue · comments

If I download the source bundle from https://github.com/kristiandupont/schemalint/releases/tag/v0.4.2 and extract it the files all have single newline line endings.

However, if I download the published v0.4.2 with npm i schemalint the files all have DOS-style CRLF line endings.

This causes problems with bin/schemalint on Alpine Linux because of the carriage-return in the opening #! line.

~/app $ file ../node_modules/schemalint/bin/schemalint
../node_modules/schemalint/bin/schemalint: a /usr/bin/env node script, ASCII text executable, with CRLF line terminators

~/app $ ../node_modules/schemalint/bin/schemalint  -v
': No such file or directory

Removing the carriage return characters works as expected:

~/app $ file ../node_modules/schemalint/bin/schemalint
../node_modules/schemalint/bin/schemalint: a /usr/bin/env node script, ASCII text executable

~/app $ ../node_modules/schemalint/bin/schemalint  -v
0.4.2

Thank you for reporting this. I work both on MacOS and Windows and I must have git configured wrongly somewhere! I'll fix this.

Should be fixed now. Let me know if you have other issues.