From 270066c2960f5ba0cf2c6cb69f62078f494a032f Mon Sep 17 00:00:00 2001
From: Tristan Sloughter <t@crashfast.com>
Date: Wed, 3 Feb 2016 13:07:47 -0600
Subject: check top level config for minimum or blacklisted  otps at start

---
 src/rebar3.erl | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src')

diff --git a/src/rebar3.erl b/src/rebar3.erl
index 84d7c3e..879378e 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -105,6 +105,9 @@ run_aux(State, RawArgs) ->
                      rebar_state:apply_profiles(State, [list_to_atom(Profile)])
              end,
 
+    rebar_utils:check_min_otp_version(rebar_state:get(State1, minimum_otp_vsn, undefined)),
+    rebar_utils:check_blacklisted_otp_versions(rebar_state:get(State1, blacklisted_otp_vsns, undefined)),
+
     State2 = case os:getenv("HEX_CDN") of
                  false ->
                      State1;
-- 
cgit v1.1