-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] overriding the git hook so that we can make it run mix tasks inside of docker compose #82
Comments
1 (ok, we're on the same team) I see that the git hook template in priv needs to be changed, but my bash isn't good and I don't know how to change it there from a config in Elixir. Also, we have a Thanks. |
@oliverswitzer @jeffometer guys could you please check #83 ? I will take a deeper look later this weeking, but that should do it. |
That seems to work perfectly, thank you thank you! |
Awesome, I will make a couple of checks and submit a new release later today (UTC 2) |
Just a note for me using a mix path of |
Absolutely, I think makes sense to add this kind of information to avoid anyone running into the same problems. Thanks for the hint! |
My team uses docker compose to run our Phoenix app and try to execute all of our mix tasks within that context with
docker-compose exec mix <insert task here>
(We do this to avoid having to set up the elixir/erlang ecosystem on every new dev machine)
It would be amazing if it were possible to override the default installed git hook to use
docker-compose exec mix <elixir git hooks task>
instead ofmix <elixir git hook task>
so we don't have to have mix on our local machine. I would add this functionality myself and open a PR, but I wasn't totally sure where I would do that... I knowMix.Tasks.GitHooks.Install
would likely have to be modified, but I don't know how we would thread a config value that might overridemix
to bedocker-compose exec mix...
to that install function.Ideally, we could specify this some key in our config for git hooks that would tell
elixir_git_hooks
to install the git hook with a slightly different prefix thanmix
. Does this seem possible?Thanks in advance!
The text was updated successfully, but these errors were encountered: