summaryrefslogtreecommitdiff
path: root/src/rebar_state.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_state.erl')
-rw-r--r--src/rebar_state.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index d5d19f3..713cb40 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -90,7 +90,8 @@ new(ParentState, Config, Dir) ->
Opts = ParentState#state_t.opts,
LocalOpts = case rebar_config:consult_file(filename:join(Dir, ?LOCK_FILE)) of
[D] ->
- dict:from_list([{locks, D}, {{deps, default}, D} | Config]);
+ D1 = proplists:get_value(deps, Config, []),
+ dict:from_list([{locks, D}, {{deps, default}, D1} | Config]);
_ ->
D = proplists:get_value(deps, Config, []),
dict:from_list([{{deps, default}, D} | Config])