Comments (6)
Hi Otto,
thanks for your appreciation. It seems like your patches are missing prefixes on the paths: (Like a/
and b/
in this patch for what I mean).
Currently the plugin is missing a strip
option on the patch configuration (next to title
and url
) to tell the plugin how much levels to strip from the paths in the patch. You could implement this option if you like - otherwise you currently have to create the patches with prefixes.
Best regards,
Christian
from composer-patches-plugin.
Hi Christian,
Thank you for the quick reply. It was not clear for me that I needed to add to prefixes. I noticed it, but didn't understand that I needed to add the prefixes.
I have updated both patch files, but I'm getting a different error now. When it tries to run the first patch. All other patches are skipped (same file and second file)
[Netresearch\Composer\Patches\PatchCommandException]
Patch SUPEE-1533_EE_1.12_v1.patch would fail!
Error executing command "patch -f -p1 --no-backup-if-mismatch -r - --dry-ru
n":
patching file app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
Hunk #1 FAILED at 444.
1 out of 1 hunk FAILED -- saving rejects to file -
patching file app/code/core/Mage/Adminhtml/controllers/DashboardController.
php
Hunk #1 FAILED at 92.
1 out of 1 hunk FAILED -- saving rejects to file -
I extracted the patch files form the Magento .sh files. When I run the .sh files everything is patched automatically.
Original patch .sh file: http://shopbase.nl/patches/PATCH_SUPEE-1533_EE_1.12.x_v1-2015-02-10-08-19-16.sh
Extracted .patch file: http://shopbase.nl/patches/SUPEE-1533_EE_1.12_v1.patch
Best regards,
Otto Smittenaar
from composer-patches-plugin.
Hi Christian,
Am I doing something wrong (stupid ;-))?
Hope you can point me again in the right direction.
Best regards,
Otto Smittenaar
from composer-patches-plugin.
Hi Otto,
there is something wrong with the patch - may it be, that it was already applied?
The plugin is actually really executing the stated command in the directory of your package. For debugging, you could take this command and exute it manually there (eg. patch -f -p1 --no-backup-if-mismatch -r - --dry-run SUPEE-1533_EE_1.12_v1.patch
).
from composer-patches-plugin.
Hi Christian,
Thanks, i will try that.
Best regards,
Otto
from composer-patches-plugin.
Hi Christian,
You where right. On of the patches is already applied to the Composer repository of Magento 1.9.1.0.
It works perfectly now. Thanks a lot.
Best regards,
Otto Smittenaar
from composer-patches-plugin.
Related Issues (20)
- composer status command throws exception HOT 1
- Allow for a directory paramater HOT 1
- Applying patch results in Fatal when upgrading to 1.2.0 HOT 2
- Applying multiple patches to same a package results in second patch applied multiple times. HOT 3
- Deprecated VersionConstraint HOT 1
- Generate PATCHES.txt HOT 2
- Patch gets applied everytime composer install is run HOT 3
- patch does not have parameter --no-backup-if-mismatch on FreeBSD HOT 2
- Caching patch content HOT 2
- GPL Licensing HOT 1
- Missing a require statement HOT 1
- Exit code unequal 0 when patches cannot be applied HOT 1
- Installing Magento 2.2.8 on Unbuntu with Php 7.1.30 HOT 1
- Support for composer-plugin-api 2 HOT 2
- Add documentation about patches in local files HOT 3
- Incompatible with windows because of using `which` HOT 1
- Checksum compare should be case insensivite
- Does not support Windows HOT 3
- Question: How to remove a patch properly? HOT 4
- composer 2.x latest version support, Type error with composer 2.4.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composer-patches-plugin.