diff options
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r-- | src/rebar_prv_install_deps.erl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 9a3703c..692beaf 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -65,15 +65,16 @@ init(State) -> -spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}. do(State) -> - ?INFO("Verifying dependencies...", []), Profile = rebar_state:current_profile(State), + ?INFO("Verifying ~p dependencies...", [Profile]), ProjectApps = rebar_state:project_apps(State), try - {ok, SrcApps, State1} = case rebar_state:get(State, locks, []) of - [] -> - handle_deps(State, rebar_state:get(State, {deps, Profile}, [])); - Locks -> - handle_deps(State, Locks) + {ok, SrcApps, State1} = case {Profile, rebar_state:get(State, locks, [])} of + {default, Locks} -> + handle_deps(State, Locks); + _ -> + %% If not the default profile, ignore locks file + handle_deps(State, rebar_state:get(State, {deps, Profile}, [])) end, Source = ProjectApps ++ SrcApps, |