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 of mix <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 know Mix.Tasks.GitHooks.Install would likely have to be modified, but I don't know how we would thread a config value that might override mix to be docker-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 than mix. Does this seem possible?
Thanks in advance!
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.Installwould likely have to be modified, but I don't know how we would thread a config value that might overridemixto 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_hooksto install the git hook with a slightly different prefix thanmix. Does this seem possible?Thanks in advance!