-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Breaks with Git 2.14.0 #148
Comments
Oh boy. Thanks for reporting this. Really not looking forward to debugging this. :/ git-- |
yep, there's changes in git https://lkml.org/lkml/2017/8/4/481 probably
|
Was also hitting this, see PR for something that fixes this on my system |
Having issues installing and updating Drupal Lightning on FreeBSD
|
Just adding a voice, that I'm also seeing this. Issue posted in acquia/lightning, cross-posting here: https://github.com/acquia/lightning/issues/473 I've confirmed that it does not happen under git 2.13.3, but does happen under git 2.14.1. |
I can also confirm, anecdotally, that #152 fixes the issue I'm seeing. |
I'm also seeing these errors when running Can anyone explain that discrepancy, and/or provide a clear case where these errors actually prevent a patch being applied? This needs to be fixed regardless, but I want to understand the exact scope and severity of this bug. |
I am working with the Drupal Lightning distribution on a shared hosting provider. The actual Git-version is 2.15.0. I became aware of the problem with Git-version 2.14.3. The problem is severe, because the projects are not maintainable on this server, which is important for small projects. The Drupal Lightning projects are managed with Composer and the Drupal shell Drush. Composer patches are managed with cweagans/composer-patches. Clean installations and updates fail since patches are not applied. However, I can download the patches and apply them manually. Software: |
I get the same error messages as you when running verbose composer commands, but in the end the patches do seem to be applied. I'm trying to understand why the patches are correctly applied for me but not for you (regardless of the error messages). |
On my installation, the patches are clearly not applied.
All I know is comping from this post: By the way: The installation can be done with an other shared hosting provider and an old Git-version, without issues. The installations and updates run also on my local machines with older Git-versions. |
Okay I think I've figured out the discrepancy. This is an interplay between composer-patches, Git, and GNU patch. composer-patches starts throwing errors for Git versions >= 2.14.0 However, depending on the version of GNU patch on your system, these errors may or may not actually be harmful. It appears that newer versions can recover more gracefully from this problem. With Git 2.15.0 and Patch 2.5 (the default for Mac OS), I get errors and the patches fail to apply. With Git 2.15.0 and Patch 2.7.5 (the default for Ubuntu), I get errors but the patches still successfully apply. |
uname -a
|
See my new PR for this here, including an in-depth explanation of why patches were still applying in spite of the errors: #165 Also note that this PR reveals another bug, which is that |
n.b. if you need to update your Patch version on Mac OS: |
Fixes #148: Incompatible with Git 2.14+.
Fixes #148: Incompatible with Git 2.14+.
This may have introduced a regression for older versions of Git :( |
Yes, this is causing patch install to fail on the git version from Ubuntu 16.04 |
Installing gpatch on OS X 10.12.5 didn't fix this for me, I had to upgrade to High Sierra (10.13.2). |
@pwolanin @mortenson Even when using composer-patches 1.6.4? |
@grasmash It looks like that released the day I made my comment, so I'm not sure we were on it at the time. |
The 1.6.4 release seems to have fixed it. |
Unfortunately, my hosting provider will not update patch. So 1.6.4 does not fix the problem. git version 2.15.1 Error messages: |
@RalfEisler it's unlikely that this bug would produce that particular error. The bug related to patch version generally fails silently. Are you absolutely sure that the patch you are referencing applies cleanly outside of Composer? |
@danepowell -- I am failing to clean install or update Drupal Lightning projects in a specific context. Patches are not applied.
However, I could apply them manually:
|
Oh it's not just the one core patch, it's every patch not applying. Yeah that seems like a bug, but you should probably open a new issue. |
Using Git 2.14.0 breaks appying Patches (Alpine Edge, Composer 1.5). Latest Working Version is 2.13.4.
In the Release Notes (https://github.com/git/git/blob/master/Documentation/RelNotes/2.14.0.txt) are changes to "gitdir" and "git apply", maybe its one of them?
The text was updated successfully, but these errors were encountered: