-
-
Notifications
You must be signed in to change notification settings - Fork 61
Composer unable to apply patches #62
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
Comments
Hi @joz-cti, This isn't something I'm familiar with, but I'll look into it for you as soon as I can. Any follow up information here would be useful, but I'll pick it up as soon as I get some time. Cheers, |
I am facing the same issue. |
Hi @joz-cti I'm following up on this as the issue is still unresolved. Please could you help me by showing me the output of your failing workflow? I can't see any reason why this wouldn't work out of the box, as Ubuntu does indeed have diff and patch installed by default. Thanks, |
Hi Greg,
I will look into this tomorrow and provide you the log
Joz
…On Mon, 5 Sept 2022, 22:32 Greg Bowler, ***@***.***> wrote:
Hi @joz-cti <https://github.com/joz-cti>
I'm following up on this as the issue is still unresolved. Please could
you help me by showing me the output of your failing workflow? I can't see
any reason why this wouldn't work out of the box, as Ubuntu does indeed
have diff and patch installed by default.
Thanks,
Greg.
—
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUPGUUINSZAFNVFWY2PLHE3V4ZRG3ANCNFSM5CPDS6XQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi Greg, I have the same issue with applying compose patches. I can share you the output message, perhaps will help you
|
Interesting - it looks like this is run within |
I've added the |
@g105b - First, I'm no expert on Github actions, and could be completely off base, so take it for what its worth. But this is the rabbit trail I've gone down for looking into this.
So after that rabbit trail... I think adding Also, I guess I would also ask, why not use a composer docker image? |
OK - I forked 2 of your repos, and I think I have this working. Simply put, in your php-build.bash file in php-actions/php-build, I changed:
I added in a few others from composer's docker file. I want to keep looking into this on my site to make sure it really is working. |
Oh that looks a lot simpler than I thought. I'll make that change on |
Just added a PR. I worked on it a little more yesterday and is working for my case. |
Will update this ticket later with the outcome of testing. |
Hi - this looks to be working now on a test branch. Please can you give it a run by using this step in your workflow file: - name: Install dependencies
uses: php-actions/composer@bluecadet |
The bluecadet branch is using the PR raised by @pingevt. Thanks! |
@g105b Finally got around to looking into this... At first pass it looks like it is working for my use case. |
Has this issue been fixed? I've tried using both the v6 and the bluecadet builds, but still get the same errors reported in this ticket when applying patches. Here is my workflow:
The error response I get is:
|
Hey @pingevt I wondered if you could take a look at @shawnachieve's message and compare your issue with theirs? It may be that there is a different issue here, in which case we can re-open this and I can try to replicate with the supplied yml. |
Looks like its still the same error: @shawnachieve could you provide some more information? Your composer file or Is this in a public repo we could look at? |
The thing I notice from the error message is that it's being generated from a part of the script that's running in |
Why is this issue closed, is it resolved? I tried to use "patch" in my composer.json and I am facing the same error. patch '-p2' --no-backup-if-mismatch -d 'docroot/core' < '/tmp/641d4245c3285.patch' |
I got the same error "sh: patch: not found" with php-actions/composer@bluecadet. |
This github action is unable to apply composer patches, the specific add on I am using is - https://github.com/cweagans/composer-patches
It is strange that if I use "composer install" instead of this package then composer can apply the patches.
The add on requires "patch" to be installed on the server, I can confirm this was installed on the Ubuntu OS.
Are there permission restriction on what this action can do? Perhaps it cannot write/update to the the file system?
The text was updated successfully, but these errors were encountered: