Closed GoZOo closed 1 month ago
My bad, declaration of ignore-dependency-patches is wrong.
Here is the good one found on https://docs.cweagans.net/composer-patches/usage/configuration/ :
`{
[...],
"extra": {
"composer-patches": {
"ignore-dependency-patches": [
"some/package",
]
}
}
}`
Verification
composer self-update
)composer update cweagans/composer-patches
)What were you trying to do (and why)?
To understand : Machine cannot access to web, so cannot download patches. Patches are downloaded manually and stored in local. A package (drupal/ui_styles) embed patch url in its composer.json, so I ignore this module with ignore-dependency-patches. I download manually this patch and define it in patches. During composer install, everything is fine, patch apply and i have no curl error (composer does not try to download patch from composer.json package).
What's wrong I previously had a patch named 14.patch for module default_content. I rename it to default_content--2698425-14.patch to be more relevant. File patches.lock.json is still referencing 14.patch.
I try to update patches.lock.json with
composer patches-relock
, but command fails because it tries to download patch defined by composer.json in sabberworm/php-css-parser package, even if it's marked as ignored.What happened? What did you expect to happen?
I expect that patches-relock command take care of
ignore-dependency-patches
config in composer.json and does not try to download patches definied in the composer.json of listed packaged, but still apply local patches defined in the main composer.json.Full contents of
composer.json
Full contents of
patches.lock.json
Full output of
composer patches-doctor
Full output of relevant Composer command with the
-vvv
flag added