summaryrefslogtreecommitdiff
path: root/src/rebar_prv_lock.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_lock.erl')
-rw-r--r--src/rebar_prv_lock.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rebar_prv_lock.erl b/src/rebar_prv_lock.erl
index 058846a..1844934 100644
--- a/src/rebar_prv_lock.erl
+++ b/src/rebar_prv_lock.erl
@@ -29,11 +29,18 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
+ OldLocks = rebar_state:get(State, {locks, default}, []),
Locks = build_locks(State),
Dir = rebar_state:dir(State),
file:write_file(filename:join(Dir, ?LOCK_FILE),
io_lib:format("~p.~n", [Locks])),
- {ok, State}.
+ State1 = rebar_state:set(State, {locks, default}, Locks),
+
+ OldLockNames = [element(1,L) || L <- OldLocks],
+ NewLockNames = [element(1,L) || L <- Locks],
+ rebar_utils:info_useless(OldLockNames, NewLockNames),
+
+ {ok, State1}.
-spec format_error(any()) -> iolist().
format_error(Reason) ->