annkissam / akd

Elixir Deployment Automation Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Akd.Init.Distillery & hex / rebar

ericsullivan opened this issue · comments

Occasionally the build server doesn't have hex / rebar installed and it gives errors

Could not find Hex, which is needed to build dependency :credo
Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn]

and

Could not find "rebar3", which is needed to build dependency :telemetry
I can install a local copy which is just used by Mix
Shall I install rebar3? (if running non-interactively, use "mix local.rebar --force") [Yn]

It's non-interactive though, so you need to quit.

Questions:

  1. Can we adjust the hook so it won't wait for a signal that'll never occur?
  2. Should we add the installation as part of the hook?

Yeah, let's check for them to be present in the init hook. And add a new hook to install them.