From 818a7e9772e1b3bffe0bf48f009e28b701bbdf89 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Thu, 27 May 2021 11:41:37 +0200 Subject: [PATCH] build: use base rebar.conf when emqx.git is as dependency --- rebar.config.erl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rebar.config.erl b/rebar.config.erl index 45a4de818..5901ab706 100644 --- a/rebar.config.erl +++ b/rebar.config.erl @@ -2,10 +2,15 @@ -export([do/2]). -do(_Dir, CONFIG) -> - {HasElixir, C1} = deps(CONFIG), - Config = dialyzer(C1), - maybe_dump(Config ++ [{overrides, overrides()}] ++ coveralls() ++ config(HasElixir)). +do(Dir, CONFIG) -> + case iolist_to_binary(Dir) of + <<".">> -> + {HasElixir, C1} = deps(CONFIG), + Config = dialyzer(C1), + maybe_dump(Config ++ [{overrides, overrides()}] ++ coveralls() ++ config(HasElixir)); + _ -> + CONFIG + end. bcrypt() -> {bcrypt, {git, "https://github.com/emqx/erlang-bcrypt.git", {branch, "0.6.0"}}}.