summaryrefslogtreecommitdiff
path: root/src/rebar_prv_plugins_upgrade.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_plugins_upgrade.erl')
-rw-r--r--src/rebar_prv_plugins_upgrade.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_prv_plugins_upgrade.erl b/src/rebar_prv_plugins_upgrade.erl
index fabfa5b..f946f40 100644
--- a/src/rebar_prv_plugins_upgrade.erl
+++ b/src/rebar_prv_plugins_upgrade.erl
@@ -91,5 +91,6 @@ build_plugin(AppInfo, Apps, State) ->
Providers = rebar_state:providers(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, AppInfo),
- rebar_prv_compile:compile(S, Providers, AppInfo).
+ 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).