diff options
author | Tristan Sloughter <t@crashfast.com> | 2019-07-08 17:45:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 17:45:36 -0600 |
commit | 57237d442ea8bcbfb35239a613dc29e73ef736b8 (patch) | |
tree | d2ee5c5bbe0d70f684734ac6e904113909d80c92 /src/rebar_prv_plugins_upgrade.erl | |
parent | 11be2bd0e1015394607296b4eff21f9d4b4bbc7a (diff) | |
parent | 6ab589b58a072b9b62c2f6f440add55f50bbabd6 (diff) |
Merge pull request #2121 from tsloughter/plug-upgrades
keep resources in new state used in plugins upgrade
Diffstat (limited to 'src/rebar_prv_plugins_upgrade.erl')
-rw-r--r-- | src/rebar_prv_plugins_upgrade.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_plugins_upgrade.erl b/src/rebar_prv_plugins_upgrade.erl index 7420c83..39107c9 100644 --- a/src/rebar_prv_plugins_upgrade.erl +++ b/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). |