summaryrefslogtreecommitdiff
path: root/src/rebar_app_discover.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-07-26 07:52:18 +0100
committerFred Hebert <mononcqc@ferd.ca>2015-07-26 07:52:18 +0100
commite2b4dcdb4c68c8142aba9835a5ee4c644aef4e9b (patch)
tree5312e3762996feb316a813880b85aada69bdb173 /src/rebar_app_discover.erl
parentbe1b16aea5650b57e28a77db044be27096b60c64 (diff)
parentc983675b9ef8499a41e18ee6b8d83d11d75bd6b7 (diff)
Merge pull request #642 from tsloughter/validate-otp-version
Validate otp version
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r--src/rebar_app_discover.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index f55a4d5..95b3273 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -51,6 +51,10 @@ merge_deps(AppInfo, State) ->
rebar_state:apply_profiles(
rebar_state:new(reset_hooks(rebar_state:opts(State, Default)), C,
rebar_app_info:dir(AppInfo)), CurrentProfiles), Name),
+
+ rebar_utils:check_min_otp_version(rebar_state:get(AppState, minimum_otp_vsn, undefined)),
+ rebar_utils:check_blacklisted_otp_versions(rebar_state:get(AppState, blacklisted_otp_vsns, [])),
+
AppState1 = rebar_state:set(AppState, artifacts, []),
AppInfo1 = rebar_app_info:state(AppInfo, AppState1),