-
Notifications
You must be signed in to change notification settings - Fork 150
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
Install with composer 2.5.0 not work #168
Comments
As workaround you can change your composer version with this command to the last working version: |
Hey, We can't really fix it for the older versions. But we will fix it for the next minor release. For now you have three options to fix this: Removing shopware/recovery (Recommended)The recovery package contains only the Updater logic for the Web Updater. This is not required for composer based updates. Update your composer.json"scripts": {
"pre-install-cmd": [
"[ ! -f vendor/autoload.php ] || $PHP_BINARY bin/console system:update:prepare"
],
"pre-update-cmd": [
"[ ! -f vendor/autoload.php ] || $PHP_BINARY bin/console system:update:prepare"
],
"post-install-cmd": [
- "@composer install --working-dir vendor/shopware/recovery --no-interaction --no-scripts",
- "@composer install --working-dir=vendor/shopware/recovery/Common --no-interaction --optimize-autoloader --no-suggest",
"[ ! -f vendor/autoload.php ] || $PHP_BINARY bin/console system:update:finish"
],
"post-update-cmd": [
- "@composer install --working-dir vendor/shopware/recovery --no-interaction --no-scripts",
- "@composer install --working-dir=vendor/shopware/recovery/Common --no-interaction --optimize-autoloader --no-suggest",
"[ ! -f vendor/autoload.php ] || $PHP_BINARY bin/console system:update:finish"
]
} "require": {
"php": "^7.4.3 || ^8.0",
"composer-runtime-api": "^2.0",
"shopware/administration": "~v6.4.0",
"shopware/core": "~v6.4.0",
"shopware/elasticsearch": "~v6.4.0",
- "shopware/recovery": "~v6.4.0",
"shopware/storefront": "~v6.4.0"
}, Update to Flex TemplateThe Flex template does not contain the Recovery anymore. https://www.shopware.com/en/news/shopware-goes-symfony-flex/ Run composer update inside that folderBy calling update, you generate a newer lock file and then finally can run it. composer update -d vendor/shopware/recovery/Common/ |
Fourth Alternative: stay on composer 2.4.4 |
The obvious fix would be to release a new patch version for each affected minor version. |
Is there any update on this issue? |
I will close this as in newer versions this has been fixed |
I've installed 6.4.20.0 and I have the exact same problem |
the fix above works for now |
@shyim thank you for the fix! Can/Should I update to the new Flex template while using Shopware 6.4.x or will that be done for me with the upgrade to 6.5.x? And if I should update, where do I find more information about the process? Thank you |
The auto updater will migrate to flex. You can use the new installer to migrate to >= 6.4.18.0 |
PHP Version
8.1
Shopware Version
6.4.18.0
Expected behaviour
A fresh clone of shopware/production and a
composer install
works without a problem.Actual behaviour
composer install
run into the following error:The problem is that composer 2.5.0 (20.12.2022) changed the following:
Added hard failure when installing from a lock file which does not satisfy the composer.json requirements
https://github.com/composer/composer/blob/main/CHANGELOG.md
It looks like that the composer.json und composer.lock file of shopware/recovery does not match.
How to reproduce
composer install
The text was updated successfully, but these errors were encountered: