Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony lock file not up to date even after running composer update

I just ran a composer update on my local machine for my Symfony2 app, which also updated the projects composer.lock file.

Now I git add -A and git commit changes.

But when I git push my repository to my cloudControl deployment, I get the message:

Warning: The lock file is not up to date with the latest changes in
composer.json. You may be getting outdated dependencies. Run update
to update them.

I just ran the update. So what is wrong here?

like image 213
Gottlieb Notschnabel Avatar asked Feb 03 '26 20:02

Gottlieb Notschnabel


1 Answers

I would imagine that if you get this on a remote machine after running update locally the only explanation is that you did not commit the composer.lock file.

like image 52
Seldaek Avatar answered Feb 05 '26 13:02

Seldaek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!