-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error applying php-parser patch on rector-src with Mac #8143
Comments
I can't reproduce, did you try remove vendor first?
|
not sure, I am using mac m1, working ok on my side:
|
Very strange error, I have tried downloading the patch locally to apply it, and if I remove 1 hunk out of 2 (either one removed) it applies patch, but not when I have 2 hunks in the patch, unsure what could be the reason. Not really familiar with git patches syntax I'll try to downgrade git to v2.37.1 Edit: It seems that the problem is with the patch executable (nothing to do with git-patch). I had this version:
I installed gpatch (had to add package directory to PATH) and it now works without an issue. |
@Herz3h thank you for investigation, I think that's worth a documentation update, could you provide readme update PR on https://github.com/rectorphp/rector-src/blob/main/README.md thank you. |
I remember having the same problem on my mac. IIRC installing a newer version of gpatch is the way to fix it. its a global macos problem which came with one of the newer macos major updates, not rector specific update: I found my own problem which links cweagans/composer-patches#423 with a in-deep analysis of the cause |
Indeed, |
Bug Report
composer install fails after checking out, with a Mac on PHP 8.1
The text was updated successfully, but these errors were encountered: