-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[5.2] Add Bootstrap Composer scripts #12827
Conversation
Maybe this needs sending to 5.1 @taylorotwell? |
Moved to |
@@ -0,0 +1,42 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no?
👍 Looks great, thanks barryvdh. And yes this FIX (all installations being BROKEN currently) should go into Laravel 5.1 LONG TERM SUPPORT as well. |
It wouldn't hurt to add this to L5.1, so it will work consistently in 5.1+ with the same composer.json scripts. |
This doesn't appear to have been added into 5.1 LTS - I am still unable to do a fresh install. |
Currently, it can fail only if there is a stale compiled cache. And I precisely encountered an error because of this, so indeed that can happen. |
I'll talk to Taylor again today regarding backporting this to 5.1. |
@GrahamCampbell it is really importend to fix this issue as soon as possible. Deployments only work with an really old composer version. |
It is backported: laravel/laravel#3738 |
but not tagged at this moment right? |
yes, it is tagged |
mh crazy, i have the actual LTS Version, the changes mergend into the composer.json, deleted composer.lock and got still the same error |
Alternative to laravel/laravel#3695 and the manual scripts
Instead of running a
php artisan
command, you can run it like this:This avoids loading the compiled path or needing any bootstrap configuration.
Also adds more flexibility when upgrading, instead of a laravel/laravel command.
I now used
postInstall
andpostUpdate
to callclearCompiled()
. We could also callclearCompiled
directly, but this way you could perhaps add different functions later on when needed.