I am using composer to manage dependencies in a Drupal project. Some modules I have are in mercurial repositories. Once I do composer install
I am able to download my Drupal modules from their respective mercurial repositories. The composer.lock file also gets generated correctly.
Now let's say I make changes in one of the repositories. After that, if I run composer install
, I expect the changes to get reverted, so that the repository goes back to the revision stored in composer.lock.
But that does not happen. The changes I have made persist. Am I missing something? Is this because am using a mercurial repository?
If I understand this correctly, you change something in your vendor/project
and you want to revert there changes, right?
If so, I usually remove vendor/project
directory and install package again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With