-
Notifications
You must be signed in to change notification settings - Fork 348
Description
Starting at v5.0.0, the buildpack refuses to use php 8.3, giving a warning that "No PHP version satisfies all constraints", then instead defaults to 8.1, breaking my build and failing the push. Localy, composer install/composer update work completely fine, and all composer checks confirm that there are no php version conflicts for my dependencies. I had to downgrade back to v4 to get cf push working - v4 works fine using PHP 8.3.
Here is the full cf push output:
$ cf push app -f ../manifest-dev.yml -p . -t 180
Pushing app X to org X / space X as X
Applying manifest file ..\manifest-dev.yml...
Manifest applied
Packaging files to upload...
Uploading files...
10.75 MiB / 10.75 MiB [=======================================================================================================================================================] 100.00% 1s
Waiting for API to complete processing files...
Staging app and tracing logs...
Downloading php_buildpack...
Downloaded php_buildpack
Cell 1b520d84-42fa-44e9-8045-ad70e439e563 creating container for instance 57cbbcb2-3a52-4b44-900d-8741962a3a7c
Security group rules were updated
Cell 1b520d84-42fa-44e9-8045-ad70e439e563 successfully created container for instance 57cbbcb2-3a52-4b44-900d-8741962a3a7c
Downloading app package...
Downloading build artifacts cache...
Downloaded build artifacts cache (30.8M)
Downloaded app package (164.9M)
-----> Php Buildpack version 5.0.1
WARNING buildpack version changed from 4.6.28 to 5.0.1
-----> Supplying PHP
Loading user configuration from .bp-config/options.json
Running extension Configure phase
-----> Composer requires PHP ^8.3
Locked dependencies have 84 additional PHP constraints
Warning: No PHP version satisfies all constraints, using default
Installing PHP 8.1.32
-----> Installing php 8.1.32
Download [https://buildpacks.cloudfoundry.org/dependencies/php/php_8.1.32_linux_x64_cflinuxfs4_51db527b.tgz]
WARNING php 8.1.x will no longer be available in new buildpacks released after 2024-11-25.
See: http://php.net/supported-versions.php
Applying user PHP configuration overrides
Enabling fpm.d config includes
Web server: httpd
Installing HTTPD 2.4.63
-----> Installing httpd 2.4.63
Download [https://buildpacks.cloudfoundry.org/dependencies/httpd/httpd_2.4.63_linux_x64_cflinuxfs4_cf38773e.tgz]
HTTPD installed successfully
Running extension Compile phase
-----> NewRelic services not detected.
-----> Installing PHP for Composer
-----> Installing php 8.1.32
Copy [/tmp/cache/final/dependencies/b2275b1adb32076bb8a486c7f6c1dc92f6632e2d76e8ad852ea9795dfa005f57/php_8.1.32_linux_x64_cflinuxfs4_51db527b.tgz]
WARNING php 8.1.x will no longer be available in new buildpacks released after 2024-11-25.
See: http://php.net/supported-versions.php
Configured PHP with 8 extensions
-----> Installing composer 2.8.8
-----> Installing composer 2.8.8
Download [https://buildpacks.cloudfoundry.org/dependencies/composer/composer_2.8.8_linux_noarch_any-stack_957263e2.phar]
-----> Installing Composer dependencies
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 84 installs, 0 updates, 0 removals
- Downloading doctrine/inflector (2.1.0)
- Downloading dragonmantank/cron-expression (v3.6.0)
- Downloading symfony/http-foundation (v7.4.5)
- Downloading fruitcake/php-cors (v1.4.0)
- Downloading guzzlehttp/psr7 (2.8.0)
- Downloading guzzlehttp/promises (2.3.0)
- Downloading guzzlehttp/guzzle (7.10.0)
- Downloading guzzlehttp/uri-template (v1.0.5)
- Downloading itsgoingd/clockwork (v5.3.5)
- Downloading symfony/polyfill-intl-grapheme (v1.33.0)
- Downloading symfony/string (v7.4.4)
- Downloading symfony/service-contracts (v3.6.1)
- Downloading symfony/console (v7.4.4)
- Downloading laravel/prompts (v0.3.13)
- Downloading laravel/serializable-closure (v2.0.9)
- Downloading nette/utils (v4.1.3)
- Downloading nette/schema (v1.3.5)
- Downloading league/commonmark (2.8.0)
- Downloading league/csv (9.28.0)
- Downloading league/flysystem-local (3.31.0)
- Downloading league/flysystem (3.31.0)
- Downloading league/uri-interfaces (7.8.0)
- Downloading league/uri (7.8.0)
- Downloading monolog/monolog (3.10.0)
- Downloading symfony/translation-contracts (v3.6.1)
- Downloading symfony/translation (v7.4.4)
- Downloading symfony/polyfill-php83 (v1.33.0)
- Downloading symfony/clock (v7.4.0)
- Downloading nesbot/carbon (3.11.1)
- Downloading nunomaduro/termwind (v2.4.0)
- Downloading openspout/openspout (v4.32.0)
- Downloading phpstan/phpdoc-parser (2.3.2)
- Downloading doctrine/deprecations (1.1.6)
- Downloading phpdocumentor/type-resolver (1.12.0)
- Downloading brick/math (0.14.8)
- Downloading ramsey/uuid (4.9.2)
- Downloading symfony/finder (v7.4.5)
- Downloading symfony/event-dispatcher (v7.4.4)
- Downloading symfony/var-dumper (v7.4.4)
- Downloading symfony/polyfill-php85 (v1.33.0)
- Downloading symfony/error-handler (v7.4.4)
- Downloading symfony/http-kernel (v7.4.5)
- Downloading symfony/mime (v7.4.5)
- Downloading symfony/mailer (v7.4.4)
- Downloading symfony/polyfill-php84 (v1.33.0)
- Downloading symfony/process (v7.4.5)
- Downloading symfony/routing (v7.4.4)
- Downloading symfony/uid (v7.4.4)
- Downloading webmozart/assert (2.1.5)
- Downloading phpdocumentor/reflection-docblock (5.6.6)
- Downloading phpoption/phpoption (1.9.5)
- Downloading graham-campbell/result-type (v1.1.4)
- Downloading vlucas/phpdotenv (v5.6.3)
- Downloading symfony/css-selector (v7.4.0)
- Downloading tijsverkoyen/css-to-inline-styles (v2.4.0)
- Downloading laravel/framework (v12.52.0)
- Installing doctrine/inflector (2.1.0): Extracting archive
- Installing doctrine/lexer (3.0.1): Extracting archive
- Installing dragonmantank/cron-expression (v3.6.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.33.0): Extracting archive
- Installing symfony/deprecation-contracts (v3.6.0): Extracting archive
- Installing symfony/http-foundation (v7.4.5): Extracting archive
- Installing fruitcake/php-cors (v1.4.0): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-factory (1.1.0): Extracting archive
- Installing guzzlehttp/psr7 (2.8.0): Extracting archive
- Installing guzzlehttp/promises (2.3.0): Extracting archive
- Installing guzzlehttp/guzzle (7.10.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.33.0): Extracting archive
- Installing guzzlehttp/uri-template (v1.0.5): Extracting archive
- Installing itsgoingd/clockwork (v5.3.5): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.33.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.33.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.33.0): Extracting archive
- Installing symfony/string (v7.4.4): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.6.1): Extracting archive
- Installing symfony/console (v7.4.4): Extracting archive
- Installing laravel/prompts (v0.3.13): Extracting archive
- Installing laravel/serializable-closure (v2.0.9): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing nette/utils (v4.1.3): Extracting archive
- Installing nette/schema (v1.3.5): Extracting archive
- Installing dflydev/dot-access-data (v3.0.3): Extracting archive
- Installing league/config (v1.2.0): Extracting archive
- Installing league/commonmark (2.8.0): Extracting archive
- Installing league/csv (9.28.0): Extracting archive
- Installing league/mime-type-detection (1.16.0): Extracting archive
- Installing league/flysystem-local (3.31.0): Extracting archive
- Installing league/flysystem (3.31.0): Extracting archive
- Installing league/uri-interfaces (7.8.0): Extracting archive
- Installing league/uri (7.8.0): Extracting archive
- Installing psr/log (3.0.2): Extracting archive
- Installing monolog/monolog (3.10.0): Extracting archive
- Installing symfony/translation-contracts (v3.6.1): Extracting archive
- Installing symfony/translation (v7.4.4): Extracting archive
- Installing symfony/polyfill-php83 (v1.33.0): Extracting archive
- Installing psr/clock (1.0.0): Extracting archive
- Installing symfony/clock (v7.4.0): Extracting archive
- Installing carbonphp/carbon-doctrine-types (3.2.0): Extracting archive
- Installing nesbot/carbon (3.11.1): Extracting archive
- Installing nunomaduro/termwind (v2.4.0): Extracting archive
- Installing openspout/openspout (v4.32.0): Extracting archive
- Installing phpstan/phpdoc-parser (2.3.2): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing doctrine/deprecations (1.1.6): Extracting archive
- Installing phpdocumentor/type-resolver (1.12.0): Extracting archive
- Installing psr/simple-cache (3.0.0): Extracting archive
- Installing ramsey/collection (2.1.1): Extracting archive
- Installing brick/math (0.14.8): Extracting archive
- Installing ramsey/uuid (4.9.2): Extracting archive
- Installing symfony/event-dispatcher-contracts (v3.6.0): Extracting archive
- Installing symfony/finder (v7.4.5): Extracting archive
- Installing symfony/event-dispatcher (v7.4.4): Extracting archive
- Installing symfony/var-dumper (v7.4.4): Extracting archive
- Installing symfony/polyfill-php85 (v1.33.0): Extracting archive
- Installing symfony/error-handler (v7.4.4): Extracting archive
- Installing symfony/http-kernel (v7.4.5): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.33.0): Extracting archive
- Installing symfony/mime (v7.4.5): Extracting archive
- Installing egulias/email-validator (4.0.4): Extracting archive
- Installing symfony/mailer (v7.4.4): Extracting archive
- Installing symfony/polyfill-php84 (v1.33.0): Extracting archive
- Installing symfony/process (v7.4.5): Extracting archive
- Installing symfony/routing (v7.4.4): Extracting archive
- Installing symfony/polyfill-uuid (v1.33.0): Extracting archive
- Installing symfony/uid (v7.4.4): Extracting archive
- Installing webmozart/assert (2.1.5): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.6.6): Extracting archive
- Installing voku/portable-ascii (2.0.3): Extracting archive
- Installing phpoption/phpoption (1.9.5): Extracting archive
- Installing graham-campbell/result-type (v1.1.4): Extracting archive
- Installing vlucas/phpdotenv (v5.6.3): Extracting archive
- Installing symfony/css-selector (v7.4.0): Extracting archive
- Installing tijsverkoyen/css-to-inline-styles (v2.4.0): Extracting archive
- Installing laravel/framework (v12.52.0): Extracting archive
- Installing goldspecdigital/oooas (v2.10.0): Extracting archive
- Installing tartanlegrand/laravel-openapi (v2.1.2): Extracting archive
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 8.3.0". You are running 8.1.32.
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception
In platform_check.php line 24:
Composer detected issues in your platform: Your Composer dependencies requi
re a PHP version ">= 8.3.0". You are running 8.1.32.
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
-----> Composer command failed
ERROR Extension compilation failed: extension composer compile failed: failed to run composer: composer install failed: exit status 1
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
BuildpackCompileFailed - App staging failed in the buildpack compile phase
FAILED