-
Notifications
You must be signed in to change notification settings - Fork 276
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
--no-interaction still requires interaction #355
Comments
Thank you for reporting this issue! As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub. If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team. Thank you! |
Hey do you use Laravel Herd by any chance? Because then you would use the laravel installer from them and not the one globally installed via composer. |
I checked, I have globally You can check with the following commands: which laravel
laravel --version |
Ah that's my bad for not checking
Let me test again using the composer version. |
I don't think it is your bad. I also didn't assume that and tried to debug your issue. That is when I found out about it. (Or more like was reminded again about this issue). The installer will probably be updated in the next Herd version. (At least I hope so) |
Okay, I tested it now and the composer version (56898ec) still prompts for rerunning migrations, while the Herd version (5.8.3) prompts me for creating the database and re-running the migrations. So the linked PR fixing the SQLite issue does solve that one issue, but the installer still has issues with |
Okay, then I will continue debugging! |
Not sure what the best way would be. The change needs to be done at Jetstream: You would add something like this: // Don't run migrations automatically
! $this->option('no-interaction') && confirm('...')
// Run migrations automatically
$this->option('no-interaction') || confirm('...') But you would then to manually re-run the migrations (something which could also be handled by the Laravel installer, because it knows you didn't have time to change some code). |
@stancl My bad. I'm using Herd and I just noticed If I run composer global require laravel/installer # got 5.8.5
alias laravel=~/.composer/vendor/laravel/installer/bin/laravel
laravel new filament --git --database=sqlite --pest --no-interaction
...then everything runs as expected (no prompts for database creations or running migrations). |
Thanks @eleftrik |
Installer Version
dev-master
Description
Reposting my comment here as a proper issue since it didn't get addressed there:
Not sure if I'm doing something wrong, but even on
laravel/installer:dev-master
I'm gettingwith:
laravel new --no-interaction --git --jet --stack=livewire --api --verification --pest --database=sqlite test
Also (in response to what OP wrote there),
--force
having an effect here seems wrong since the--help
comment for--force
is:So that behavior should all be under
--no-interaction
.Either way, on the latest
dev-master
, the command above prompts me for both creating the DB and re-running migrations, and--force
doesn't change anything 🤷🏻♂️Confirmed with
composer global show laravel/installer
that I'm using the right commit:Steps To Reproduce
The text was updated successfully, but these errors were encountered: