diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-09-03 20:56:29 -0700 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-09-03 20:56:29 -0700 |
commit | a311961e8b6c1634bc3beee9854f5b2d4f72393d (patch) | |
tree | b1f143c545768b4891f08892a7ee18f24fc16dbc /src/rebar_prv_plugins_upgrade.erl | |
parent | bee43181d2c60df78e159da263b0889a64f5b88e (diff) | |
parent | a81444ae1c32fb1ff73bd571327fd6adeec9901f (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.erl | 5 |
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). |