ssh2 failing to install with php 8.2
Describe the bug
Approximately 2 hours ago (9:30am mountain time, 3/20/2024) all of my builds that were previously working started to fail saying ssh2: Could not install ssh2 on PHP 8.2.15.
Version
- [ ] I have checked releases, and the bug exists in the latest patch version of
v1orv2. - [ x ]
v2 - [ ]
v1
Runners
- [ x ] GitHub Hosted
- [ ] Self Hosted
Operating systems ubuntu-latest
PHP versions 8.2.4 (but setup-php installs 8.2.15)
To Reproduce env: php-version: '8.2.4' php-extensions: curl, json, simplexml, soap, ssh2, zip php-extension-cache-key: cache-v1 steps: - name: Setup PHP environment uses: shivammathur/setup-php@v2 with: php-version: ${{ env.php-version }} extensions: ${{ env.php-extensions }} tools: none
Expected behavior I expect php to be installed with the ssh2 extension
Screenshots/Logs
Encountered something similar in our own flows installing gnupg over 8.1.25 using the configuration
- uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
with:
tools: phpunit, composer:v2.7.1
php-version: 8.1.27
coverage: none
extensions: gnupg, ast-1.0.16
Can we have the entire action fail in this case? I don't think it helps to have a broken extension and then attempt to move forward in the rest of the action. Thanks!
All my jobs started failing about this time too, although my error is different
Getting this error for rdkafka install..started a couple of hours ago
github hosted runner
Encountered something similar in our own flows installing
gnupgover8.1.25using the configuration- uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0 with: tools: phpunit, composer:v2.7.1 php-version: 8.1.27 coverage: none extensions: gnupg, ast-1.0.16Can we have the entire action fail in this case? I don't think it helps to have a broken extension and then attempt to move forward in the rest of the action. Thanks!
johnmlee101 FYI, there is already a "fail-fast" option that will kill the entire action if an extension fails.
Same but for mailparse extension and PHP 8.2.15. Tried both on 2.29.0 and 2.30.0 versions of setup-php.
Run shivammathur/[email protected]
with:
coverage: none
php-version: 8.2.14
tools: composer:v2, pecl
extensions: mbstring, amqp, ctype, iconv, mailparse, pdo
ini-file: production
env:
MESSENGER_TRANSPORT_DSN_ENTITY_CACHE_UPDATE: in-memory://
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/2.30.0/src/scripts/run.sh
==> Setup PHP
✓ PHP Installed PHP 8.2.15
==> Setup Extensions
✓ mbstring Enabled
✓ amqp Enabled
✓ ctype Enabled
✓ iconv Enabled
✗ mailparse Could not install mailparse on PHP 8.2.15
✓ pdo Enabled
==> Setup Tools
✓ composer Added composer 2.7.2
✓ PECL Added PECL 1.[10](https://github.com/celebrityagent/celebrityagent/actions/runs/8362309078/job/22894602343#step:4:10).[12](https://github.com/celebrityagent/celebrityagent/actions/runs/8362309078/job/22894602343#step:4:12)
==> Setup Coverage
✓ none Disabled Xdebug and PCOV
Launchpad PPA hosting is down for maintenance. This affects downloading the extension packages. https://twitter.com/launchpadstatus/status/1770482383453577682
This has been resolved. Please restart your workflows. https://twitter.com/launchpadstatus/status/1770532196257849798
Thanks shivammathur. Really appreciate your work on these GH actions!
Any updates on this? I'm getting it today:
Run shivammathur/[email protected]
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/2.30.2/src/scripts/run.sh
==> Setup PHP
✓ PHP Installed PHP 8.1.31
==> Setup Extensions
✓ pdo_sqlite Enabled
✗ rdkafka Could not install rdkafka on PHP 8.1.31
==> Setup Tools
✓ composer Added composer 2.8.5
==> Setup Coverage
✓ pcov.enabled=1 Added to php.ini
✓ pcov PCOV 1.0.11 enabled as coverage driver
==> Sponsor setup-php
✓ setup-php https://setup-php.com/sponsor
@aykonsvk Please create a new issue along with the details of your workflow
Can we have the entire action fail in this case? I don't think it helps to have a broken extension and then attempt to move forward in the rest of the action. Thanks!