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.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_prv_lock.erl b/src/rebar_prv_lock.erl
index 8edfc9a..db6e753 100644
--- a/src/rebar_prv_lock.erl
+++ b/src/rebar_prv_lock.erl
@@ -33,6 +33,9 @@ do(State) ->
AllDeps = rebar_state:get(State, all_deps, []),
Locks = lists:map(fun(Dep) ->
Dir = rebar_app_info:dir(Dep),
+
+ %% If source is tuple it is a source dep
+ %% e.g. {git, "git://github.com/ninenines/cowboy.git", "master"}
case rebar_app_info:source(Dep) of
Source when is_tuple(Source) ->
{rebar_app_info:name(Dep)