riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Build fails in Elixir 1.0.5 #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

Building under Ubuntu 14.04 with build-essentials and elixir-dev installed.

Error log:

Running dependency resolution
All dependencies up to date
==> openmaize
Compiled lib/openmaize.ex
Compiled lib/openmaize/config.ex
Compiled lib/openmaize/signup.ex
Compiled lib/openmaize/plugs/loginout_check.ex
Compiled lib/openmaize/report.ex
Compiled lib/openmaize/plugs/id_check.ex
Compiled lib/openmaize/token_config.ex

== Compilation error on file lib/openmaize/plugs/authorize.ex ==
** (CompileError) lib/openmaize/plugs/authorize.ex:75: function full_path/1 undefined
    (stdlib) lists.erl:1337: :lists.foreach/2
    (stdlib) erl_eval.erl:669: :erl_eval.do_apply/6

could not compile dependency openmaize, mix compile failed. You can recompile this dependency with `mix deps.compile openmaize` or update it with `mix deps.update openmaize`

Deps:

  defp deps do
    [{:phoenix, "~> 0.15"},
     {:phoenix_ecto, "~> 0.8"},
     {:postgrex, ">= 0.0.0"},
     {:phoenix_html, "~> 1.4"},
     {:phoenix_live_reload, "~> 0.5", only: :dev},
     {:cowboy, "~> 1.0"},
     {:openmaize, git: "https://github.com/elixircnx/openmaize.git"}]
  end
riverrun commented 9 years ago

Hi, Thanks for letting me know about this problem. Can you try using the hex package and see if that works. So change the last line in deps to: {:openmaize, "~> 0.6"}] Let me know if that works.

ghost commented 9 years ago

It works. I thought I had tried that last night following the README, but I must have done something wrong. Thanks.

riverrun commented 9 years ago

Actually, I found out later that the real problem was that I was using a function in Plug that got deprecated a few days ago, and I released a fix last night. Anyway, it's good to hear you've got it working.