summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-19 14:54:30 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-21 10:27:59 -0500
commit35166b5f1aaff1fca8df0d1a37f15f99e30cf070 (patch)
treeb67f92ee41d1b17bd4c8aa9e7d9a1bf5ef0ea09b /src
parentb34cc499244c0900f6362ed9d81c3acbbff8689e (diff)
parsing deps of a dep should be done at the dep's level + 1
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_install_deps.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 7e96090..ddfc09d 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -385,7 +385,7 @@ handle_dep(State, DepsDir, AppInfo, Locks, Level) ->
NewLocks = [{DepName, Source, LockLevel+Level} ||
{DepName, Source, LockLevel} <- rebar_state:get(S3, {locks, default}, [])],
AppInfo2 = rebar_app_info:deps(AppInfo1, rebar_state:deps_names(Deps)),
- {SrcDeps, PkgDeps} = parse_deps(DepsDir, Deps, S3, Locks, Level),
+ {SrcDeps, PkgDeps} = parse_deps(DepsDir, Deps, S3, Locks, Level+1),
{AppInfo2, SrcDeps, PkgDeps, Locks++NewLocks, State1}.
-spec maybe_fetch(rebar_app_info:t(), atom(), boolean(),