瀏覽代碼

Fixup plugin upgrade autoupdate

Didn't handle tuple-based dep definitions right
pull/2390/head
Fred Hebert 4 年之前
父節點
當前提交
37db9b7073
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/rebar_prv_plugins_upgrade.erl

+ 2
- 0
src/rebar_prv_plugins_upgrade.erl 查看文件

@ -94,6 +94,8 @@ build_plugin(ToBuild, State) ->
Providers = rebar_state:providers(State),
rebar_prv_compile:compile(State, Providers, ToBuild, plugins).
maybe_update_pkg(Tup, State) when is_tuple(Tup) ->
maybe_update_pkg(element(1, Tup), State);
maybe_update_pkg(Name, State) ->
try rebar_app_utils:parse_dep(root, ?DEFAULT_PLUGINS_DIR, Name, State, [], 0) of
AppInfo ->

Loading…
取消
儲存