akd
akd copied to clipboard
Akd.Init.Distillery & hex / rebar
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:
- Can we adjust the hook so it won't wait for a signal that'll never occur?
- 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.