diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-08-23 17:42:25 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-08-23 17:42:25 -0500 |
commit | 2e931f29f4e935ac7d206fe851935491666c8e30 (patch) | |
tree | 625f4845703f77cf7e601bfc8471bd252878aad3 /src | |
parent | 807daff78b9d648e42c482033504af880699bd58 (diff) |
don't error on upgrade if user removes top level dep
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_upgrade.erl | 3 |
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, |