瀏覽代碼

merge_locks crashed if a config didn't have a deps entry

pull/367/head
Tristan Sloughter 10 年之前
父節點
當前提交
ee0f4dcd60
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_config.erl

+ 1
- 1
src/rebar_config.erl 查看文件

@ -69,7 +69,7 @@ merge_locks(Config, [[]]) ->
Config;
%% lockfile with entries
merge_locks(Config, [Locks]) ->
{deps, ConfigDeps} = lists:keyfind(deps, 1, Config),
ConfigDeps = proplists:get_value(deps, Config, []),
%% We want the top level deps only from the lock file.
%% This ensures deterministic overrides for configs.
%% Then check if any new deps have been added to the config

Loading…
取消
儲存