laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.7k stars 478 forks source link

8.4 runtime is missing the swoole extension #760

Open eae-omeyer opened 5 days ago

eae-omeyer commented 5 days ago

Sail Version

1.38.0

Laravel Version

11.33.2

PHP Version

8.4

Operating System

Windows (WSL)

OS Version

11

Description

On startup with enabled swoole configuration, the error "The Swoole extension is missing." is shown. Unable to start.

Looking at the corresponding docker file shows the swoole extension is excluded.

Steps To Reproduce

Fresh install...

$ curl -s https://laravel.build/example-app?with=none | bash

...or change runtime version in docker-compose with 8.4 context: ./vendor/laravel/sail/runtimes/8.4 ...add the supervisor command for swoole as described here

$ sail up

[...]
ERROR  The Swoole extension is missing.

2024-11-25 17:08:34,952 INFO exited: php (exit status 1; not expected)
^CGracefully stopping... (press Ctrl+C again to force)
[...]
Jubeki commented 5 days ago

The Swoole extensions is not yet released for PHP 8.4. See the following tracking issue: https://github.com/oerdnj/deb.sury.org/issues/2176

You can also check yourself:

apt list php8.4-swoole

which will yield no results.

eae-omeyer commented 5 days ago

Yes, you are right - didn't notice that before :/