-
-
Notifications
You must be signed in to change notification settings - Fork 242
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 install fails with contrib project and bad patch #127
Comments
If we do want composer to fail with bad patches, I think the solution to this issue is to report the actual error--bad patches--instead of a version constraint message. |
Can reproduce. If |
Generally running the update again fixes it (assuming patch failure was a fluke.( |
Added to the 2.0.0 roadmap (#93) |
I think this was probably a composer bug. Things have changed significantly since then, so I'm going to assume this is no longer an issue. Please let me know if that's not the case. |
I have a Commerce 2.x project from
composer create-project drupalcommerce/project-base mystore --stability dev
(install docs) that is requiring one project (commerce_shipping
currently, but any one of the commerce contrib projects produced similar errors), and with one failing-to-apply patch to commerce.The problem is that with a commerce + contrib + bad patch composer.json file, I can
composer update
but I cannot afterwardscomposer install
. IF I either a.) remove the contrib requirement, or b.) fix the patch, I cancomposer install
after acomposer update
.Here is the "bad patch" composer.json and "good patch" composer.json.
Steps to reproduce:
composer update && composer install
with bad-patch composer.json. Should fail with error:composer update && composer install
with the good-patch composer.json. Should succeed.composer update && composer install
with the bad-patch composer.json, butcommerce_shipping
require removed.I've seen patches not apply without composer failing. I don't expect dependency errors to arise from composer patches that don't apply. I'd expect to see them regardless of patch failures.
Am I the only one, or can others reproduce this?
The text was updated successfully, but these errors were encountered: