diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-07-26 07:52:18 +0100 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-07-26 07:52:18 +0100 |
commit | e2b4dcdb4c68c8142aba9835a5ee4c644aef4e9b (patch) | |
tree | 5312e3762996feb316a813880b85aada69bdb173 /src/rebar_prv_install_deps.erl | |
parent | be1b16aea5650b57e28a77db044be27096b60c64 (diff) | |
parent | c983675b9ef8499a41e18ee6b8d83d11d75bd6b7 (diff) |
Merge pull request #642 from tsloughter/validate-otp-version
Validate otp version
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r-- | src/rebar_prv_install_deps.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 8bb394a..69956f0 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -386,6 +386,9 @@ handle_dep(State, Profile, DepsDir, AppInfo, Locks, Level) -> S4 = rebar_state:set(S3, {plugins, Profile}, Plugins), AppInfo1 = rebar_app_info:state(AppInfo, S4), + rebar_utils:check_min_otp_version(rebar_state:get(S4, minimum_otp_vsn, undefined)), + rebar_utils:check_blacklisted_otp_versions(rebar_state:get(S4, blacklisted_otp_vsns, [])), + %% Dep may have plugins to install. Find and install here. S5 = rebar_plugins:install(S4), AppInfo2 = rebar_app_info:state(AppInfo1, S5), |