summaryrefslogtreecommitdiff
path: root/src/rebar_prv_lock.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2016-02-21 09:47:31 -0600
committerTristan Sloughter <t@crashfast.com>2016-02-21 09:47:31 -0600
commit862486cac743174b6a3a2ffb487dc851ea97020a (patch)
treeae01a72905fbfa81fa8fd0c4ac5bbbf4f717698c /src/rebar_prv_lock.erl
parente3437c1dfbb170fe07793004738c29963b887466 (diff)
parentcaf4468f3bbbea75be35e0cf0560990b5db66e7e (diff)
Merge pull request #1061 from ferd/future-proof-lockfiles
Make lock files future-proof
Diffstat (limited to 'src/rebar_prv_lock.erl')
-rw-r--r--src/rebar_prv_lock.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_prv_lock.erl b/src/rebar_prv_lock.erl
index 8578979..cbe8dfe 100644
--- a/src/rebar_prv_lock.erl
+++ b/src/rebar_prv_lock.erl
@@ -35,8 +35,7 @@ do(State) ->
OldLocks = rebar_state:get(State, {locks, default}, []),
Locks = lists:keysort(1, build_locks(State)),
Dir = rebar_state:dir(State),
- file:write_file(filename:join(Dir, ?LOCK_FILE),
- io_lib:format("~p.~n", [Locks])),
+ rebar_config:write_lock_file(filename:join(Dir, ?LOCK_FILE), Locks),
State1 = rebar_state:set(State, {locks, default}, Locks),
OldLockNames = [element(1,L) || L <- OldLocks],