Bläddra i källkod

keep resources in new state used in plugins upgrade

pull/2121/head
Tristan Sloughter 5 år sedan
förälder
incheckning
6ab589b58a
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: AAB97DDECCEB8150
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      src/rebar_prv_plugins_upgrade.erl

+ 2
- 1
src/rebar_prv_plugins_upgrade.erl Visa fil

@ -90,8 +90,9 @@ find_plugin(Plugin, Profiles, State) ->
build_plugin(AppInfo, Apps, State) -> build_plugin(AppInfo, Apps, State) ->
Providers = rebar_state:providers(State), Providers = rebar_state:providers(State),
Resources = rebar_state:resources(State),
AppDir = rebar_app_info:dir(AppInfo), AppDir = rebar_app_info:dir(AppInfo),
C = rebar_config:consult(AppDir), C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:all_deps(rebar_state:new(), Apps), C, 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), 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).

Laddar…
Avbryt
Spara