Reputation: 12182
I get the following error on a fresh Laravel 4 install after adding a new dependency to the composer.json
and running composer update
. Any ideas?
[RuntimeException]
Source directory /var/www/projects/adcraft/vendor/laravel/framework has uncommitted changes.
Upvotes: 1
Views: 1315
Reputation: 4928
Another way you can solve this is by setting the discard changes in the config parameter in your composer.json file, see https://getcomposer.org/doc/06-config.md#discard-changes.
{
"name": "test",
"description": "Demonstrating concepts",
...
"config": {
"process-timeout": 1800,
"discard-changes" : true
},
...
}
This worked for me.
Upvotes: 2
Reputation: 42076
You could go in that vendor/laravel/framework directory and run git status
to see what changes there are. Anyway if you self-update
composer to its latest version, it should now prompt you and ask if you want to revert those changes before updating instead of failing hard.
Upvotes: 1