Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer revert after making changes

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?

like image 934
sherlock Avatar asked Jul 02 '15 15:07

sherlock


1 Answers

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.

like image 142
Tomas Votruba Avatar answered Sep 21 '22 12:09

Tomas Votruba