Giter Club home page Giter Club logo

Comments (3)

CybotTM avatar CybotTM commented on May 28, 2024 1

Thank you @c33s , #44 is merged.

from composer-patches-plugin.

CybotTM avatar CybotTM commented on May 28, 2024

Please check yourself for a possible solution from our network, and create MR if one of those fixes your problem:

from composer-patches-plugin.

c33s avatar c33s commented on May 28, 2024

@CybotTM

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 in composer.json could also be a way. as there is no "sub-namespace" in patches, 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.