Skip to content
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

Skeleton Installation Fails in PHP 8.0 #47

Closed
dbierer opened this issue May 20, 2021 · 3 comments
Closed

Skeleton Installation Fails in PHP 8.0 #47

dbierer opened this issue May 20, 2021 · 3 comments
Labels
Bug Something isn't working

Comments

@dbierer
Copy link

dbierer commented May 20, 2021

Bug Report

Installation fails when running under PHP 8.0. Works OK when --ignore-platform-req option is added.

Q A
Composer 2.1-dev
Composer 1.10.22
PHP 8.0.0
Ubuntu 20.04

Summary

When running create project on Linux and PHP 8.0, I choose all Laminas components (e.g. option 3) and also Whoops. The installation then stops and I get a series of Composer version conflict messages for components I did not choose. Not sure if the problem is that the installer ignores my choices and installs other versions (e.g. other DI containers, other routers, other template engines), or if there's another PHP 8 conflict in one of the dependent composer.json::require directives.

Works OK when using the following syntax:

composer create-project --ignore-platform-req php mezzio/mezzio-skeleton /path/to/xyz

Current behavior

Here is the output from just now:

Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement.
  Problem 2
    - elie29/zend-phpdi-config is locked to version v6.0.1 and an update of this package was not requested.
    - elie29/zend-phpdi-config v6.0.1 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
  Problem 3
    - jsoumelidis/zend-sf-di-config is locked to version 0.4.1 and an update of this package was not requested.
    - jsoumelidis/zend-sf-di-config 0.4.1 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
  Problem 4
    - laminas/laminas-pimple-config is locked to version 1.1.2 and an update of this package was not requested.
    - laminas/laminas-pimple-config 1.1.2 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
  Problem 5
    - mezzio/mezzio-tooling is locked to version 1.3.1 and an update of this package was not requested.
    - mezzio/mezzio-tooling 1.3.1 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
  Problem 6
    - mezzio/mezzio-twigrenderer is locked to version 2.6.1 and an update of this package was not requested.
    - mezzio/mezzio-twigrenderer 2.6.1 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.

How to reproduce

Use any version of Linux running PHP 8.0 (I've tried it on 3 different versions of Linux):

cd /tmp
wget https://getcomposer.org/composer.phar
php composer.phar create-project mezzio/mezzio-skeleton mezzio

Expected behavior

Expected behavior is a completed Mezzio skeleton app.

@dbierer dbierer added the Bug Something isn't working label May 20, 2021
@Blackvz
Copy link

Blackvz commented May 21, 2021

I have the same problem. :/

@dbierer
Copy link
Author

dbierer commented May 22, 2021

If you add the --ignore-platform-req flag, the installation proceeds OK. The problem has to do with minimum requirements in the dependent Composer packages. It appears that the installer installs all alternates (e.g. Aura DI, Twig, etc.) even if not selected. I had to manually edit the /config/config.php file and comment out the unwanted providers. Once I did that, and used the option to ignore platform requirements everything went OK.

@michalbundyra
Copy link
Member

It is solved now - actually since 3.9.0 release.

Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants