diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-08-24 15:59:08 +1200 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-08-24 15:59:08 +1200 |
commit | 23201d3a1487de92ab4f6f3183f2f9e1aa5baeae (patch) | |
tree | f4b7012227bf61f289d2f35449e063622f95dc1e | |
parent | 67f889b47bce7694e176a2158b0f28796309605e (diff) | |
parent | 2e931f29f4e935ac7d206fe851935491666c8e30 (diff) |
Merge pull request #747 from tsloughter/rm_top_level
don't error on upgrade if user removes top level dep
-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, |