jamescowie / composer-patcher Goto Github PK
View Code? Open in Web Editor NEWMagento autoloader strategy for patching Mage.php and adding composer autoloader
Magento autoloader strategy for patching Mage.php and adding composer autoloader
I'm getting the following error from the shell file when installing patches using composer update
- it seems to be not correctly moving the scripts or picking up the magento directory specified in the composer extras:
Fetching patch patches-1911/magento-supee-5344
Error applying patch patches-1911/magento-supee-5344:
The command "sh '/project/http/mage_shell_patch.sh'" failed.
Exit Code: 1(General error)
Output:
================
ERROR: "/project/app/etc/" must exist for proper tool work.
Error Output:
================
Relevant composer.json config:
{
"scripts" : {
"post-install-cmd": [
"modman deploy-all --force",
"Inviqa\\Command::patch"
],
"post-update-cmd": [
"modman deploy-all --force",
"Inviqa\\Command::patch"
]
},
"extra":{
"magento-root-dir": "http",
"patches": {
"patches-1911": {
"magento-supee-5344": {
"type": "shell",
"title": "Magento SUPEE-5344",
"url": "https://raw.githubusercontent.com/brentwpeterson/magento-patches/master/CE1.9-EE1.14/PATCH_SUPEE-5344_EE_1.14.1.0_v1-2015-02-10-04-20-13.sh"
},
"magento-supee-5994": {
"type": "shell",
"title": "Magento SUPEE-5994",
"url": "https://raw.githubusercontent.com/brentwpeterson/magento-patches/master/CE1.9-EE1.14/PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh"
}
}
}
}
}
When upgrading to Magento 2.2.5. the module will not upgrade because it is reliant on symfony/console 2.6
Console output when trying to run composer upgrade :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install jamescowie/composer-patcher dev-master
- Conclusion: remove symfony/console v2.8.42
- Installation request for jamescowie/composer-patcher dev-master -> satisfiable by jamescowie/composer-patcher[dev-master].
- Conclusion: don't install symfony/console v2.8.42
- jamescowie/composer-patcher dev-master requires symfony/console 2.6.* -> satisfiable by symfony/console[v2.6.0, v2.6.0-BETA1, v2.6.0-BETA2, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9].
- Can only install one of: symfony/console[v2.6.0, v2.8.42].
- Can only install one of: symfony/console[v2.6.0-BETA1, v2.8.42].
- Can only install one of: symfony/console[v2.6.0-BETA2, v2.8.42].
- Can only install one of: symfony/console[v2.6.1, v2.8.42].
- Can only install one of: symfony/console[v2.6.10, v2.8.42].
- Can only install one of: symfony/console[v2.6.11, v2.8.42].
- Can only install one of: symfony/console[v2.6.12, v2.8.42].
- Can only install one of: symfony/console[v2.6.13, v2.8.42].
- Can only install one of: symfony/console[v2.6.2, v2.8.42].
- Can only install one of: symfony/console[v2.6.3, v2.8.42].
- Can only install one of: symfony/console[v2.6.4, v2.8.42].
- Can only install one of: symfony/console[v2.6.5, v2.8.42].
- Can only install one of: symfony/console[v2.6.6, v2.8.42].
- Can only install one of: symfony/console[v2.6.7, v2.8.42].
- Can only install one of: symfony/console[v2.6.8, v2.8.42].
- Can only install one of: symfony/console[v2.6.9, v2.8.42].
- Installation request for symfony/console (locked at v2.8.42) -> satisfiable by symfony/console[v2.8.42].
Installation failed, reverting ./composer.json to its original content.
e.g. new Process("patch -p 1 < " . $filesToPatch);
, and there are more similar places
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.