GithubHelp home page GithubHelp logo

Comments (4)

edmorley avatar edmorley commented on August 17, 2024

https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows

from neutrino.

constgen avatar constgen commented on August 17, 2024

May be (I am not sure) it will fix it in my personal environment. But it will not save other developers from this issue. The good practice is to keep everything always in LF. But I have no idea where CRLF are generated from. What is also interesting that the half of the generated file is LF and the another half is CRLF

Another option: do you think we can apply local Git configs and commit them to the repository?

from neutrino.

edmorley avatar edmorley commented on August 17, 2024

Yeah the SO link has suggestions for how to set up a .gitattributes file, which gets committed to the repo and tells git to ignore the global settings the user might have and check out the code with the desired line endings.

from neutrino.

constgen avatar constgen commented on August 17, 2024

Turned out the issue comes from absolutely another side facebook/jscodeshift#195 . Recast (the nested dependency) automatically chooses OS end of line for code generation.

I tried --printOptions='{"lineTerminator":"\n"}' in the test. And the problem is that even with the flag the generated output is not affected. Actually no of known printOptions affect anything. Seems like they are not applied at all. They say they resolved this issue but I can still reproduce ignoring of printOptions in CLI

Have no idea how to make it work. The only options are to redesign the test or disable testing on commit as they block. PRs will be still tested on CI

from neutrino.

Related Issues (20)

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.