build: use base rebar.conf when emqx.git is as dependency

This commit is contained in:
Zaiming Shi 2021-05-27 11:41:37 +02:00 committed by turtleDeng
parent 387d7f5913
commit 818a7e9772
1 changed files with 9 additions and 4 deletions

View File

@ -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"}}}.