-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Patching hangs on PHP 8.2+ on apple processors #13
Comments
With verbose output the hang looks like this:
And if I press enter twice:
If I run that last command that's hanging manually it looks to prompt me for a file, but that could just be because it's happening out of sync. Here's what it looks like when I run it and hit enter twice:
|
I think that the problem is that the dependency patcher relies on the GNU implementation of the While I'll try to find some time to find a solution, I think that the issue could be fixed by running # Install the GNU version of the patch command
brew install gpatch
# Instruct the system to use the GNU version of the patch command by default
brew link gpatch --force --overwrite |
You are correct, I didn't need to force the overwrite, it was enough to just |
@KorvinSzanto Could you check if #14 fixes the issue when using the standard |
@mlocati Looks like the fix doesn't work. I used the same sample composer.json as above except I:
|
I managed to access a Mac, and checked the
So, I've updated #14 and the code in the |
I retried my steps from my last comment and I'm still seeing the same hanging behavior, it works the first time but then subsequent installs where the patch is already applied hang. I'm definitely getting the
|
On Mac OS X 10.15.7, the output of
So, there's no (or there may be not) So, I guess that the best choice we have in order to detect the
I'll try to add support for this. |
@KorvinSzanto Could you try if the last code in the |
With the latest version of that branch I get the following output with no hangs:
Honestly just using the brew version of gpatch is fine for my workflow |
My composer.json file is:
and I have placed this file at the place specified in composer.json.
The first time I run composer update I get the following successful output:
Now if I run either composer update or composer install again, the output hangs at:
and will hang indefinitely unless I either jam ctrl + c or press enter repeatedly. Pressing enter twice yields this output:
The text was updated successfully, but these errors were encountered: