summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-08-23 17:42:25 -0500
committerTristan Sloughter <t@crashfast.com>2015-08-23 17:42:25 -0500
commit2e931f29f4e935ac7d206fe851935491666c8e30 (patch)
tree625f4845703f77cf7e601bfc8471bd252878aad3 /src
parent807daff78b9d648e42c482033504af880699bd58 (diff)
don't error on upgrade if user removes top level dep
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_upgrade.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_upgrade.erl b/src/rebar_prv_upgrade.erl
index 7385cfe..97d1953 100644
--- a/src/rebar_prv_upgrade.erl
+++ b/src/rebar_prv_upgrade.erl
@@ -100,7 +100,8 @@ prepare_locks([Name|Names], Deps, Locks, Unlocks) ->
{_, _, 0} = Lock ->
case rebar_utils:tup_find(AtomName, Deps) of
false ->
- ?PRV_ERROR({unknown_dependency, Name});
+ ?WARN("Dependency ~s has been removed and will not be upgraded", [Name]),
+ prepare_locks(Names, Deps, Locks, Unlocks);
Dep ->
{Source, NewLocks, NewUnlocks} = prepare_lock(Dep, Lock, Locks),
prepare_locks(Names, Deps, NewLocks,