-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Local patch could not be downloaded for dependencies #315
Comments
I'm also having issues with applying a local path on my end. I tried different solutions based on #146 such as:
I am able to apply the patch successfully using
I could use all the help I can get. Please and thank you! |
I'm having the same issue too. Tried all the same fixes, also including putting the file on the web and providing a full url to it. |
@successmarket |
What if you prefix the patch path like so: |
@cweagans |
I have tested with that path and it didn't end up working for me. @sshymko let me know that solution worked for you! |
@cweagans I have tested with ./ in the composer patches extra, I have played around with a/ b/ ./ ./ or nothing at the beginning of my diff paths... nothing is working, local or web. I will keep trying today and try to find a solution, or at least, pinpoint where it fails. |
For people following, make sure that you have the "patch" cli command installed properly on the system you are running your composer command. Also, add --verbose to have proper error messages after that. Hope this helps. |
was getting an error before, realized patch was not installed, using the -vv flag helps a lot, so yeah for me local patching works using ./path/file.patch |
I had a similar issue rolling a local composer patch. Eventually I figured out that the preferred-install needs to be set to source.for the patched e.g.
Not sure if this is documented anywhwre |
I've also run into this when trying to add a patch file to a dependency package, in my case the dependency package being a custom Drupal profile (let's call it
I get that - "My patch description": "patches/my-change.patch"
+ "My patch description": "web/profiles/my_profile/patches/my-change.patch" (based on where I know the site root is installing But this workaround only works as long as I never update |
See also cweagans/composer-patches#315 . Try adding paths to the patch files that start at web.
Otherwise `icinga-php-library` won't apply the patches from the relative path. See cweagans/composer-patches#315
Not sure what was going on here. |
Preconditions:
composer.json
patches/composer.txt
composer.json
Steps to reproduce:
Actual result:
The text was updated successfully, but these errors were encountered: