Hey @qgadrian, I started using git_hooks for a project and it’s working well so far. The bit that I’m stuck on is getting the hooks to auto install. Is this supposed to occur upon compilation?
I have added the dependency to my project like so:
Note that my config is inside of config/dev.exs. I also tried moving it to be inside of config/config.exs, similar to how you had it in your readme. However, in both cases I had to manually install the hooks.
It’s weird, I just tested it myself in a new project and it worked fine Since the auto-install will run every time the dependency is compiled, could it be possible that it was already compiled in your case?
@qgadrian Hey thanks for the awesome library. I have some concerns regarding automatic installations as well. I placed some logs within the library code and found that the git hooks path that the code uses in case of mix git_hooks.install is different from the one that is generated when we use mix deps.compile.
I believe that when we use mix deps.compile it takes the git hook directory relative to the deps folder. Maybe I am wrong but just wanted to let you know.