qgadrian
Git hooks - Add git hooks to Elixir projects
Hey guys, I just wanted to share a library that was being around for a while already, but I didn’t share properly until now so it can help more people 
It’s called git_hooks and the main features are:
- Git hooks actions are configured in your project
- Auto install the configured hooks (configurable)
- The actions can be system commands or a script in your project
Any feedback or PRs are highly appreciated 
Thank you and stay safe out there!
Most Liked
qgadrian
Hey @r-c!
Is this supposed to occur upon compilation?
Correct! (here it is where in the code).
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?
Sorry for the late response mate ![]()
Mukulch15
@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.
qgadrian
Did you try the latest release? I recently added support for “other cases” but the regular, monolith, standard, elixir application.
If you tried it and still have problems, can you please open an issue on GitHub with more details? Then I will take a look and help you out with it ![]()







