annkissam / akd

Elixir Deployment Automation Package
MIT License
52 stars 2 forks source link

Akd.Init.Distillery & hex / rebar #59

Open ericsullivan opened 5 years ago

ericsullivan commented 5 years ago

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?

thebugcatcher commented 5 years ago

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