Comments (3)
Thank you @c33s , #44 is merged.
from composer-patches-plugin.
Please check yourself for a possible solution from our network, and create MR if one of those fixes your problem:
from composer-patches-plugin.
my proposed fix/MR for the problem is #44. my MR adds the which/where bridge and also tries to simply run patch
without running where before.
to collect the information to have everything on one place:
MR #17 introduced this bug as it requires to have the which
binary which results in a path which is checkable with is_executable
. on windows which
returns a "linux" path like /usr/bin/patch
if which
was installed with git for windows. is_executable
returns false for this path.
so enhancing the error message introduced a break on all systems which have no which
command. as far as i see most of the solutions @CybotTM mentioned will fix the problem. from my point of view the which
/ where
bridge solutions are the better than the others.
- so the easiest fix is the simply remove the change introduced with #17
- to keep the change but also allow to run it on windows the which/where bridge is a simple solution.
- to allow to config the path to
patch
incomposer.json
could also be a way. as there is no "sub-namespace" inpatches
, the fastest way would be to add the config to the info for each patch. which is quite uncool from DX but it would work. - good addition would be to simply try to run
patch
and only if that fails try to locate it with which/where.
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
- 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.