summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r--src/rebar3.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index fa26ab2..56bf3e8 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -170,6 +170,8 @@ run_aux(State, RawArgs) ->
%% to find config files, and so on, and return an internal rebar3 state term.
-spec init_config() -> rebar_state:t().
init_config() ->
+ rebar_utils:set_httpc_options(),
+
%% Initialize logging system
Verbosity = log_level(),
ok = rebar_log:init(command_line, Verbosity),
@@ -366,7 +368,6 @@ ensure_running(App, Caller) ->
-spec state_from_global_config([term()], file:filename()) -> rebar_state:t().
state_from_global_config(Config, GlobalConfigFile) ->
- rebar_utils:set_httpc_options(),
GlobalConfigTerms = rebar_config:consult_file(GlobalConfigFile),
GlobalConfig = rebar_state:new(GlobalConfigTerms),