Browse Source

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

pull/367/head
Tristan Sloughter 10 years ago
parent
commit
ee0f4dcd60
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar_config.erl

+ 1
- 1
src/rebar_config.erl View File

@ -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…
Cancel
Save