Skip to content

--using doing too muchΒ #410

@joshmanders

Description

@joshmanders

Installer Version

5.14

Description

When using a userland starter using the --using flag, the installer is doing too much. If no post-root-package-install is set the installer just flat out kills and doesn't finish any steps (not all starters may need this script), and if the starter doesn't necessarily need other things such as running npm install and build, it still prompts for and runs those.

Those extra steps should only happen for the official Laravel starters. Otherwise you get unintended side effects.

For example, I use Skeletor in all my starters and since Skeletor prompts the user for additional information specific to that starter, the laravel installer clobbers that and outputs similar information and asks things that shouldn't be asked.

Image

As you can see from this screenshot, the > @php -r "file_exists('.env') || copy('.env.example', '.env');" is the beginning of the additional unnecessary steps performed by the installer.

I can submit a PR fixing this if necessary.

Steps To Reproduce

laravel new --using starter/laravel my-app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions