summaryrefslogtreecommitdiff
path: root/src/rebar_prv_plugins_upgrade.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-09-03 20:56:29 -0700
committerFred Hebert <mononcqc@ferd.ca>2015-09-03 20:56:29 -0700
commita311961e8b6c1634bc3beee9854f5b2d4f72393d (patch)
treeb1f143c545768b4891f08892a7ee18f24fc16dbc /src/rebar_prv_plugins_upgrade.erl
parentbee43181d2c60df78e159da263b0889a64f5b88e (diff)
parenta81444ae1c32fb1ff73bd571327fd6adeec9901f (diff)
Merge pull request #760 from tsloughter/app_info_state
move state into app_info
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).