patch-package: Patch fails when created with v5
I get the following
This error was caused because Git cannot apply the following patch file:
patches/react-scripts+1.0.17.patch
This is usually caused by inconsistent whitespace in the patch file.
when CI tries to apply the patch that I created locally (OSX) with patch package 5. Downgrading to v3 resolves the issue.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 34 (14 by maintainers)
@ds300 Maybe it’s because we are behind a private npm repo but we (both of us) only have the chance to install up to 5.1.1. Please, ignore this if we are the only ones reporting the problem.
Update: indeed it was, fixed now by our internal IT team =) Update2: v6.0.0-3 fixed the white space problem. Thanks!
Thanks for the detailed tips Liisa!
Update for this thread: Last night I made a lot of progress working on custom pure-TypeScript patch application. That will make these errors go away soon.
On Thu, 22 Mar 2018, 08:28 Liisa Duerig-Laitinen, notifications@github.com wrote:
@ds300 I was having the same issue and for now, I can confirm the beta works 😃
I was also having this issue. I tried downgrading versions and all kinds of things which didn’t work. Removing the cache key and all the lines it included from travis.yml resolved the problem.
Here is the full list of steps I took before reaching this solution:
I think the step to delete the original patch may not have been necessary, but I am not entirely sure. Definitely the step for patch #2 was not useful. I hope any of this helps anyone else having this issue.