-
Notifications
You must be signed in to change notification settings - Fork 9
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
Line ending error #7
Comments
Hi @rosszurowski. I just want to confirm. Is this issue still happening for you in the latest version? (v1.3.10) I work on work on Windows so I can't test as far as your machine goes, but it does work successfully on a Netlify build server for me. Thanks! |
The issue is still happening on v1.3.10, though installing via npm instead of yarn seems to have resolved it. This would also explain why it fails on my Netlify builds, because those are using yarn too. Seems like this might actually be an issue for how yarn handles line endings instead. |
@rosszurowski huh that's really interesting. When I get some time I'll look into this further and see if I can get it working on both Yarn and NPM installations. |
Experiencing this bug on Linux and MacOS. If it's helpful I was able fix this bug on MacOS by: brew install dos2unix
find ./node_modules/contentful-hugo -name "*.js" | xargs sudo dos2unix AFAIK this fixed the issue because it rewrote the line separator characters committed to be compatible with the host OS. The |
#7 configure end of line lf characters
#7 configure end of line lf characters
Hi! Immediately after installing contentful-hugo v1.3.8 I ran into the following error:
I've gotten this error both locally and on a Netlify build server.
Looking deeper, it seems the cli.js file has a CRLF line ending, rather than just an LF ending, which is causing bash to misinterpret
#!/usr/bin/env node
as#!/usr/bin/env node\r
. Fixing this line ending resolved the error.The text was updated successfully, but these errors were encountered: