From 35166b5f1aaff1fca8df0d1a37f15f99e30cf070 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 19 May 2015 14:54:30 -0500 Subject: parsing deps of a dep should be done at the dep's level + 1 --- src/rebar_prv_install_deps.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(), -- cgit v1.1