Giter Club home page Giter Club logo

Comments (5)

nicojs avatar nicojs commented on August 19, 2024 3

Lies

No @avassem85 . You did not! Lies! Lies! Lies!

from stryker-cli.

korthout avatar korthout commented on August 19, 2024

After some googling I discovered that this has to do with a mismatch in linebreak characters used by windows/dos-style \r\n and unix-style \n.

I found the following work around at StackOverflow.

Note that this solution uses Homebrew to install the dos2unix package.

brew install dos2unix
find ~/.node/lib/node_modules/stryker-cli/ -name "*.js" | xargs sudo dos2unix
find ~/.node/lib/node_modules/stryker-cli/bin/stryker-cli | xargs sudo dos2unix

After executing this, everything seemed to work fine.

> stryker init
Stryker is currently not installed.
? Do you want to automatically install Stryker?

from stryker-cli.

korthout avatar korthout commented on August 19, 2024

@nicojs @simondel @avassem85 I think users may avoid the stryker-cli when encountering this behaviour, so I think we should see if we can solve this issue in general, instead of having to use the above workaround.

from stryker-cli.

nicojs avatar nicojs commented on August 19, 2024

TL;DR;

We're missing a .gitattributes file. We do, however, have a .gitatrributes file 😒 (facepalm) . We need to rename the .gitattributes.

Long version

Git is more than a distribute source control utility. It's also a line ending management tool (i don't like that part, but it is). When installing git on windows, you get the questions on what to do with line endings. I (the person who did the release) chose the option "checkout windows style, check in unix style". This means that my local bin/stryker-cli file is different from yours. Mine has CR+LF line endings.

For me, everything works locally. So i did a release from my pc. However, npm is not a line ending management tool. It does not honor my git settings and it created a release with the CR+LF line endings.

My global settings for windows style line endings can be overruled per repo using the .gitattributes file. After we've created that file, problems should be solved forever, as everyone is forced to use unix style lf line endings.

from stryker-cli.

korthout avatar korthout commented on August 19, 2024

I have just verified. Problem is solved by PR #24.

from stryker-cli.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.