pragdave/mix_templates

Hex.API.Package.search api change match error

Closed this issue · 0 comments

Elixir 1.4.2
Erlang 19.3
Hex v0.16.0
macOS 10.12.4

Just installed this repo, am getting the error:

$ mix template.hex
** (FunctionClauseError) no function clause matching in Mix.Tasks.Template.Hex.extract_stuff_we_need/1
    lib/mix/tasks/template.hex.ex:22: Mix.Tasks.Template.Hex.extract_stuff_we_need({:ok, {200, ...}})
    lib/mix/tasks/template.hex.ex:16: Mix.Tasks.Template.Hex.run/1
    (mix) lib/mix/task.ex:294: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2
    (elixir) lib/code.ex:370: Code.require_file/2

It appears to be an undocumented change with the recent 0.16 release of hex, from hexpm/hex#357.