瀏覽代碼

Merge pull request #2121 from tsloughter/plug-upgrades

keep resources in new state used in plugins upgrade
pull/2123/head
Tristan Sloughter 5 年之前
committed by GitHub
父節點
當前提交
57237d442e
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/rebar_prv_plugins_upgrade.erl

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

@ -90,8 +90,9 @@ find_plugin(Plugin, Profiles, State) ->
build_plugin(AppInfo, Apps, State) ->
Providers = rebar_state:providers(State),
Resources = rebar_state:resources(State),
AppDir = rebar_app_info:dir(AppInfo),
C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:all_deps(rebar_state:new(), Apps), C, AppDir),
AppInfo1 = rebar_app_info:update_opts(AppInfo, rebar_app_info:opts(AppInfo), C),
rebar_prv_compile:compile(S, Providers, AppInfo1).
rebar_prv_compile:compile(rebar_state:set_resources(S, Resources), Providers, AppInfo1).

Loading…
取消
儲存