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.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index 713cb40..50bcfdb 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -90,8 +90,8 @@ new(ParentState, Config, Dir) ->
Opts = ParentState#state_t.opts,
LocalOpts = case rebar_config:consult_file(filename:join(Dir, ?LOCK_FILE)) of
[D] ->
- D1 = proplists:get_value(deps, Config, []),
- dict:from_list([{locks, D}, {{deps, default}, D1} | Config]);
+ LockedDeps = [X || X <- D, element(3, X) =:= 0],
+ dict:from_list([{{locks, default}, LockedDeps}, {{deps, default}, D} | Config]);
_ ->
D = proplists:get_value(deps, Config, []),
dict:from_list([{{deps, default}, D} | Config])