Mix.Release.Config.LoadError
在mac上执行brew upgrade elixir升级elixir到最新版本
升级elixir版本到1.8.1后,工程编译报错
** (Mix.Releases.Config.LoadError) could not load release config rel/config.exs
** (UndefinedFunctionError) function Mix.Config.Agent.start_link/0 is undefined (module Mix.Config.Agent is not available)
Mix.Config.Agent.start_link()
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(stdlib) erl_eval.erl:449: :erl_eval.expr/5
(stdlib) erl_eval.erl:126: :erl_eval.exprs/5
(elixir) lib/code.ex:232: Code.eval_string/3
(distillery) lib/mix/lib/releases/config/config.ex:281: Mix.Releases.Config.read_string!/1
(distillery) lib/mix/lib/releases/config/config.ex:302: Mix.Releases.Config.read!/1
google上找了许久,发现把在mix.ex文件中的distillery 改到1.5.5就可以了, {:distillery, "~> 1.5.5", runtime: false}
之后删除mix.lock, 然后执行,mix deps.get,顺利解决