qgadrian / elixir_git_hooks

🪝 Add git hooks to Elixir projects
MIT License
157 stars 16 forks source link

Seeing please ensure :git_hooks exists or remove the configuration. #149

Closed hassanshaikley closed 1 year ago

hassanshaikley commented 1 year ago

So everything is working but I am seeing this warning for some reason.

Not really sure why.

You have configured application :git_hooks in your configuration file,
but the application is not available.

This usually means one of:

  1. You have not added the application as a dependency in a mix.exs file.

  2. You are configuring an application that does not really exist.

Please ensure :git_hooks exists or remove the configuration.
caioaao commented 1 year ago

https://github.com/elixir-lang/elixir/issues/10624 found this discussion on elixir repo. See this answer. Also, if you're running Phoenix, you can just move the git_hooks config to the config/dev.exs and the warning goes away

qgadrian commented 1 year ago

Correct, either place it on dev.exs or wrap it with an if as the example config

@hassanshaikley if it still does not work please reopen this issue and share an example project with this specific error 🙏