Answer the question
In order to leave comments, you need to log in
How to disable package update in Composer?
I use composer to install the necessary modules and packages for YII2.
There was a need to change one of the packages and now so that my changes are not lost, I would like to disable its update, how can I do it right?
ZYZH I tried to comment out the line with this package in composer.json (but neither // nor # helps, the composer swears at this place)
Answer the question
In order to leave comments, you need to log in
so specify the specific version in composer.json. This will be enough. and if you wish, you can even specify a commit.
If you have a composer.lock file, then the composer first of all takes package versions from it (this file needs to be committed to the repository). Those. The next time you run composer install, the package versions specified in composer.lock will be installed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question