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

Sail installation fails if the user asks for MariaDB 10 or 11 #702

Closed
andrew-downey opened this issue Jun 29, 2024 · 1 comment · Fixed by #703
Closed

Sail installation fails if the user asks for MariaDB 10 or 11 #702

andrew-downey opened this issue Jun 29, 2024 · 1 comment · Fixed by #703
Labels

Comments

@andrew-downey
Copy link

andrew-downey commented Jun 29, 2024

Sail Version

1.30.0

Laravel Version

11.13.0

PHP Version

8.3

Operating System

Linux

OS Version

6.7.12

Description

Sail fails to install if MariaDB is selected.

It appears that the stub returns mariadb as the service for both mariadb10 and mariadb11, which does not match an array key (which are now suffixed with a version since 1.30.0).

vendor/laravel/sail/src/Console/Concerns/InteractsWithDockerComposeServices.php:90

Steps To Reproduce

php artisan sail:install and select one of the MariaDB options
alternatively
curl -s "https://laravel.build/example-website?with=mariadb,redis,typesense,minio,mailpit" | bash

@kursatcanciger
Copy link
Contributor

Same error :)

I came up with a solution and created a pull request. I hope it will be helpful.

#703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants