-
Notifications
You must be signed in to change notification settings - Fork 266
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
Project directory is not empty (with --force) #129
Comments
Just notice that I have the similar issue when using the Steps To Reproduce:
Expected
Actual
_ _
| | | |
| | __ _ _ __ __ ___ _____| |
| | / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V / __/ |
|______\__,_|_| \__,_| \_/ \___|_|
In NewCommand.php line 153:
Application already exists!
new [--dev] [--jet] [-f|--force] [--] [<name>] When using the _ _
| | | |
| | __ _ _ __ __ ___ _____| |
| | / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V / __/ |
|______\__,_|_| \__,_| \_/ \___|_|
Creating a "laravel/laravel" project at "./"
[InvalidArgumentException]
Project directory "/home/directory/app" is not empty. I think it should be good to add asking question about |
Should be fixed I think |
@driesvints it's definitely not fixed in the latest release (v4.0.3) which was released after your comment, so I'd assume the fix would have been in there if it was truly fixed. Edit: It would I believe be worth throwing an error if the name "." and the I wouldn't have expected |
@hailwood can you send a pr? |
@driesvints I'm happy to, what would you like in the PR?
|
Think 1. makes sense to me. Use the |
From this am I correct in assuming that while using |
Not 100% sure about that. |
No worries, looks like it's a wontfix from composers side anyway. My typical workflow involves opening an empty folder in phpstorm (which creates an .idea folder) and using the built in terminal to run |
You are correct @cfreear. Now we're using composer create-project which due to it essentially being a git clone and then deleting the .git directory, doesn't work in a non-empty directory. Realistically we could fix this by using create-project into a tmp directory, and then copying the files over, but I don't believe it's worth the additional complexity it would introduce. |
@hailwood agreed |
I need to create new project and only .git directory is present. I think this is a bug because .git directory doesn't affects in any way. |
Description:
Error trying to create new app, even with
--force
optionSteps To Reproduce:
/var/www/app/
and place any file inside it/var/www/app/
laravel new --dev
laravel new --force --dev
Note 1: did not pass "app name" because I want app crafted on root folder
/var/ww/app
Note 2: that works on previous version of Laravel Installer
The text was updated successfully, but these errors were encountered: