composer-git-hooks icon indicating copy to clipboard operation
composer-git-hooks copied to clipboard

cghooks remove creates a lock file even if none existed

Open jcnventura opened this issue 3 years ago • 2 comments

Adding the hooks via cghooks add -l, does not - as expected - create a cghooks.lock file. I'm using cghooks 2.8.5 while reproducing this problem.

However, running cghooks remove creates one, and there's no -l or similar option to prevent this from being created.

jcnventura avatar Jun 30 '21 18:06 jcnventura

Hi @jcnventura this seems like a missing feature. Are you willing to create a PR for this? It should be a relatively simple change to add the same option to remove

BrainMaestro avatar Jul 26 '21 12:07 BrainMaestro

Sorry for a stupid question, but what is the lock file even needed for? To delete only hooks that are added by the package, and leave all the rest? If I don't have any other hooks, can I use it without the lock file?

satoved avatar Aug 12 '21 20:08 satoved