Answer the question
In order to leave comments, you need to log in
How to roll back changes in composer dependencies?
Hi friends!
I transferred the server, performed composer install on the new server, and more recent versions of plugins were delayed, which do not work as they should. How do I get old versions of plugins back.
I have an unmodified composer.lock from an old server.
Is it even possible?
Answer the question
In order to leave comments, you need to log in
Composer install installs specific versions from composer.lock (if present). You apparently didn’t have it, or you did a composer update.
If there is an old composer.lock - just put it in the project, remove the unnecessary and do a composer install.
If there is no old composer.lock - edit composer.json, specify the necessary version constraints in it.
PS: To avoid such situations, composer.lock must be committed to the git repository.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question