Unable to install older Shopware versions which include hirak/prestissimo
dblaichinger opened this issue · 0 comments
dblaichinger commented
PHP Version
7.2
Shopware Version
6.2.3
Expected behaviour
./psh.phar docker:start
runs successfully.
Actual behaviour
Error on ./psh.phar docker:start
#18 268.4 [InvalidArgumentException]
#18 268.4 Package hirak/prestissimo has requirements incompatible with your PHP version, PHP extensions and Composer version:
#18 268.4 - hirak/prestissimo 0.3.10 requires composer-plugin-api ^1.0.0 which does not match your installed version 2.2.0.
How to reproduce
Re-production steps
git checkout v6.2.3
./psh.phar docker:start
Cause
- php-apache image uses Composer v2 by default, which makes the require of
hirak/prestissimo
unnecessary.
Solutions
-
Either remove package from https://github.com/shopware/development/blob/v6.2.3/dev-ops/docker/containers/app/Dockerfile#L39
-
Or set Composer v1 explicitly:
RUN composer1 install -d /app
ENV COMPOSER_VERSION=1