diff options
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r-- | src/rebar3.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index f95f902..c062aa4 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -142,8 +142,9 @@ init_config() -> Config1 = case rebar_config:consult_file(?LOCK_FILE) of [D] -> - % {{deps, default}, D} - Deps = [X || X <- D, element(4, X) =:= 0], + %% We want the top level deps only from the lock file. + %% This ensures deterministic overrides for configs. + Deps = [X || X <- D, element(3, X) =:= 0], [{{locks, default}, D}, {{deps, default}, Deps} | Config]; _ -> Config |