-
Notifications
You must be signed in to change notification settings - Fork 396
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
Composer patches should exit on failure when running composer commands directly #2316
Comments
Looks like we already tried to fix this for deployments in #705 |
Let's leave it in. As you said, it doesn't hurt.
The key is already included in composer.required.json. It should be inherited. It just wasn't doing anything because cweagans/composer-patches#166 was unmerged. Now that we require version 1.6.4, this should begin to work.
This should not be necessary since the configuration is inherited. The remaining work for this issue should be:
|
I have confirmed that inheritance works as expected. |
I am trying to incrementally upgrad BLT from 8 to 9 then 10. On the 8-9 step, It's trying to install /files/issues/2788777-3-146.patch (Allow a site-specific profile to be installed from existing config) Which doesn't apply to the version of Drupal it's trying to install (8.7.7). Ostensibly, BLT 9.2.8 is supposed to be compatible with drupal core ^8.7.x So, I added this to my composer file:
Which does work when building locally, but when I try to push it through pipelines, it throws an error. I tried adding the variable declaration to my acquia-pipelines.yml file, but that seems not to have worked either.
and
How can I set the exit on patch to false when building with BLT? |
Currently when BLT runs composer install as part of the build step, it sets the env var COMPOSER_EXIT_ON_PATCH_FAILURE=1, which forces composer patches to abort the install on failure. This is awesome, but it leaves people in the lurch when running composer install outside of BLT. If composer-patches fails in this context, it will throw an error but not so obviously as aborting the install.
After the next release of composer-patches, we can instead add a key to composer.json:
cweagans/composer-patches#166
Things to consider:
The text was updated successfully, but these errors were encountered: