heroku / heroku-buildpack-php

Heroku's buildpack for PHP applications.

Home Page:https://devcenter.heroku.com/categories/php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install ext-uuid when using PHP 8 on heroku-18

fbourigault opened this issue · comments

You can't install ext-uuid for PHP 8.0 with the heroku-18 stack. It works with the heroku-20 stack.

-----> Building on the Heroku-18 stack
-----> Determining which buildpack to use for this app
 !     Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
			Detected buildpacks: PHP,Node.js
			See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...

 !     ERROR: Failed to install system packages!
 !     
 !     Your platform requirements (for runtimes and extensions) could
 !     not be resolved to an installable set of dependencies, or a
 !     platform package repository was unreachable.
 !     
 !     This usually means that you (or packages you are using) depend
 !     on a combination of PHP versions and/or extensions that are
 !     currently not available on Heroku.
 !     
 !     The following is the full output from the installation attempt:
 !     
 !     > Loading repositories with available runtimes and extensions
 !     > Updating dependencies
 !     > Your requirements could not be resolved to an installable set of packages.
 !     > 
 !     >   Problem 1
 !     >     - composer.json/composer.lock requires ext-uuid ~1.2.0 -> satisfiable by ext-uuid[1.2.0].
 !     >     - ext-uuid 1.2.0 requires php 7.1.* -> satisfiable by php[7.1.33].
 !     >     - ext-uuid 1.2.0 requires php 7.2.* -> satisfiable by php[7.2.26, 7.2.27, 7.2.28, 7.2.29, 7.2.30, 7.2.31, 7.2.32, 7.2.33, 7.2.34].
 !     >     - ext-uuid 1.2.0 requires php 7.3.* -> satisfiable by php[7.3.13, 7.3.14, 7.3.15, 7.3.16, 7.3.17, 7.3.18, 7.3.19, 7.3.20, 7.3.21, 7.3.22, 7.3.23, 7.3.24, 7.3.25, 7.3.26, 7.3.27].
 !     >     - ext-uuid 1.2.0 requires php 7.4.* -> satisfiable by php[7.4.10, 7.4.11, 7.4.12, 7.4.13, 7.4.14, 7.4.15, 7.4.16, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.4.6, 7.4.7, 7.4.8, 7.4.9].
 !     >     - Can only install one of: php[8.0.3, 7.1.33].
 !     >     - Can only install one of: php[8.0.3, 7.2.26].
 !     >     - Can only install one of: php[8.0.3, 7.2.27].
 !     >     - Can only install one of: php[8.0.3, 7.2.28].
 !     >     - Can only install one of: php[8.0.3, 7.2.29].
 !     >     - Can only install one of: php[8.0.3, 7.2.30].
 !     >     - Can only install one of: php[8.0.3, 7.2.31].
 !     >     - Can only install one of: php[8.0.3, 7.2.32].
 !     >     - Can only install one of: php[8.0.3, 7.2.33].
 !     >     - Can only install one of: php[8.0.3, 7.2.34].
 !     >     - Can only install one of: php[8.0.3, 7.3.13].
 !     >     - Can only install one of: php[8.0.3, 7.3.14].
 !     >     - Can only install one of: php[8.0.3, 7.3.15].
 !     >     - Can only install one of: php[8.0.3, 7.3.16].
 !     >     - Can only install one of: php[8.0.3, 7.3.17].
 !     >     - Can only install one of: php[8.0.3, 7.3.18].
 !     >     - Can only install one of: php[8.0.3, 7.3.19].
 !     >     - Can only install one of: php[8.0.3, 7.3.20].
 !     >     - Can only install one of: php[8.0.3, 7.3.21].
 !     >     - Can only install one of: php[8.0.3, 7.3.22].
 !     >     - Can only install one of: php[8.0.3, 7.3.23].
 !     >     - Can only install one of: php[8.0.3, 7.3.24].
 !     >     - Can only install one of: php[8.0.3, 7.3.25].
 !     >     - Can only install one of: php[8.0.3, 7.3.26].
 !     >     - Can only install one of: php[8.0.3, 7.3.27].
 !     >     - Can only install one of: php[8.0.3, 7.4.10].
 !     >     - Can only install one of: php[8.0.3, 7.4.11].
 !     >     - Can only install one of: php[8.0.3, 7.4.12].
 !     >     - Can only install one of: php[8.0.3, 7.4.13].
 !     >     - Can only install one of: php[8.0.3, 7.4.14].
 !     >     - Can only install one of: php[8.0.3, 7.4.15].
 !     >     - Can only install one of: php[8.0.3, 7.4.16].
 !     >     - Can only install one of: php[8.0.3, 7.4.2].
 !     >     - Can only install one of: php[8.0.3, 7.4.3].
 !     >     - Can only install one of: php[8.0.3, 7.4.4].
 !     >     - Can only install one of: php[8.0.3, 7.4.5].
 !     >     - Can only install one of: php[8.0.3, 7.4.6].
 !     >     - Can only install one of: php[8.0.3, 7.4.7].
 !     >     - Can only install one of: php[8.0.3, 7.4.8].
 !     >     - Can only install one of: php[8.0.3, 7.4.9].
 !     >     - composer.json/composer.lock requires php ~8.0.3 -> satisfiable by php[8.0.3].
 !     > 
 !     > Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
 !     
 !     For reference, the following runtimes are currently available:
 !     
 !     PHP:  8.0.3, 8.0.2, 8.0.1, 8.0.0, 7.4.16, 7.4.15, 7.4.14, 
 !     7.4.13, 7.4.12, 7.4.11, 7.4.10, 7.4.9, 7.4.8, 7.4.7, 
 !     7.4.6, 7.4.5, 7.4.4, 7.4.3, 7.4.2, 7.3.27, 7.3.26, 
 !     7.3.25, 7.3.24, 7.3.23, 7.3.22, 7.3.21, 7.3.20, 7.3.19, 
 !     7.3.18, 7.3.17, 7.3.16, 7.3.15, 7.3.14, 7.3.13, 7.2.34, 
 !     7.2.33, 7.2.32, 7.2.31, 7.2.30, 7.2.29, 7.2.28, 7.2.27, 
 !     7.2.26, 7.1.33
 !     
 !     Please verify that all requirements for runtime versions in
 !     'composer.lock' are compatible with the list above, and ensure
 !     all required extensions are available for the desired runtimes.
 !     
 !     When choosing a PHP runtimes and extensions, please also ensure
 !     they are available on your app's stack (heroku-18), and select
 !     a different stack if needed after consulting the article below.
 !     
 !     For a list of supported runtimes & extensions on Heroku, please
 !     refer to: https://devcenter.heroku.com/articles/php-support

 !     Push rejected, failed to compile PHP app.

 !     Push failed
 !
 ! ## Warning - The same version of this code has already been built: a682447b5f0cca4f6adf0bcdcdf81e990cc9fc89
 !
 ! We have detected that you have triggered a build from source code with version a682447b5f0cca4f6adf0bcdcdf81e990cc9fc89
 ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
 !
 ! If you are developing on a branch and deploying via git you must run:
 !
 !     git push heroku <branchname>:main
 !
 ! This article goes into details on the behavior:
 !   https://devcenter.heroku.com/articles/duplicate-build-version

The app use ~8.0.3 as requirement for php and ~1.2.0 for ext-uuid.

Confirmed, it's missing on the heroku-18 stack (along with a few others).