浏览代码

Fix config loading in shell

Config files from the command line would expect the wrong format:

    {app1, [...]}.
    {app2, [...]}.

Instead of the correct sys.config format:

    [{app1, [...]},
     {app2, [...]}]

Not supported yet: the recursive file references documented in
http://www.erlang.org/doc/man/config.html
pull/473/head
Fred Hebert 10 年前
父节点
当前提交
30847ec661
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/rebar_prv_shell.erl

+ 4
- 1
src/rebar_prv_shell.erl 查看文件

@ -237,4 +237,7 @@ find_config_relx(State) ->
consult_config(State, Filename) ->
Fullpath = filename:join(rebar_dir:root_dir(State), Filename),
?DEBUG("Loading configuration from ~p", [Fullpath]),
rebar_file_utils:try_consult(Fullpath).
case rebar_file_utils:try_consult(Fullpath) of
[T] -> T;
[] -> []
end.

正在加载...
取消
保存