Coder Social home page Coder Social logo

Comments (13)

ds300 avatar ds300 commented on June 17, 2024 2

This should be fixed now, in v3.4.1 - Thanks for your patience. Please feel free to reoopen the issue if you find it is still affecting you.

from patch-package.

manuhook avatar manuhook commented on June 17, 2024 1

Thanks again,

In git bash :

patch -p1 -i patches/react-native-navigation+1.1.213.patch --verbose

image

yarn patch-package react-native-navigation

image

I have the same error in the msdos prompt.

Thanks !

from patch-package.

manuhook avatar manuhook commented on June 17, 2024

PS: Everything is working well on OSX

from patch-package.

ds300 avatar ds300 commented on June 17, 2024

Hi! :)

Windows support is still a little shaky. Do you have the git core.autocrlf property set to true?

Try running

git config --global core.autocrlf true

And then check out the repo again, then let me know if it works this time.

from patch-package.

manuhook avatar manuhook commented on June 17, 2024

Thanks ds300 :)

Unfortunately no luck with core.autocrlf set to true

from patch-package.

ds300 avatar ds300 commented on June 17, 2024

In that case, can you try running the following in git bash:

patch -p1 -i patches/react-native-navigation+1.1.213.patch --verbose

and if that doesn't report any errors, then run

yarn patch-package react-native-navigation

This should create a new version of the patch file. You should test it by removing node modules and running yarn again. If the patch is applied successfully, it means it's somehow different to the previous version. Let me know how!

from patch-package.

ds300 avatar ds300 commented on June 17, 2024

Hmm ๐Ÿค” that seems to be a problem with yarn not invoking commands on windows properly. Looks like you're using an old version of yarn. Maybe you could upgrade yarn and try again?

from patch-package.

manuhook avatar manuhook commented on June 17, 2024

Better with a yarn update :)

Now the patch created by the last command is identical to the one i was having before ^^;

from patch-package.

ds300 avatar ds300 commented on June 17, 2024

so after creating that new patch, yarn patch-package still fails?

from patch-package.

manuhook avatar manuhook commented on June 17, 2024

yes same error as my first message

from patch-package.

ds300 avatar ds300 commented on June 17, 2024

Any chance you could zip up the patch file and share it with me?

from patch-package.

manuhook avatar manuhook commented on June 17, 2024

Sure,
I've zip up 3 patches, same problem for each one of them

patches.zip

Thanks again,

from patch-package.

ds300 avatar ds300 commented on June 17, 2024

Thanks for the patch files! I've figured out what's causing this issue, and it goes away if I re-write the patch files to get rid of CRLFs before applying them, regardless of whether the source files they're patching have CRLFs or just LFs.

I'll push out a fix tonight. Thanks again for your issue report and the continued collaboration ๐Ÿ’ฏ

from patch-package.

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.