patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Option to ignore mode

Open sergejostir opened this issue 3 years ago • 2 comments

Hello.

I use Windows PC, but the application requires Linux, so I run it via virtual box (having the folder synced). If I use patch-package, the patch includes a bunch of

old mode 100644
new mode 100755

lines (for every file that was opened on the Windows machine). It it possible to somehow ignore file modes?

sergejostir avatar Feb 19 '21 10:02 sergejostir

I have both windows & linux installed on my laptop. I also encounter this issue when my projects are on my NTFS volume.

kxxt avatar Sep 13 '22 06:09 kxxt

I forked this repo and implemented this feature.

It seems that this repo is not actively maintained. Feel free to ask me to open a PR if this repo become maintained again.

My fork: https://github.com/kxxt/patch-package NPM package: @kxxt/patch-package

To ignore file mode changes, use my fork and pass this option to the command: --ignore-file-mode.

e.g.

patch-package gatsby --ignore-file-mode

kxxt avatar Sep 14 '22 14:09 kxxt