akd icon indicating copy to clipboard operation
akd copied to clipboard

Akd.Init.Distillery & hex / rebar

Open ericsullivan opened this issue 5 years ago • 1 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?

ericsullivan avatar May 20 '19 16:05 ericsullivan

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

thebugcatcher avatar May 21 '19 01:05 thebugcatcher