From b98fd0909b3e39fcb0eacdf5d20ca136dbfafe34 Mon Sep 17 00:00:00 2001 From: Roberto Aloi Date: Mon, 3 Apr 2023 21:29:01 +0200 Subject: [PATCH] Add eqwalizer dependency --- rebar.config | 16 +++++++++++++++- rebar.lock | 6 +++++- src/wa_raft.app.src | 3 ++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/rebar.config b/rebar.config index 14cd168..4237759 100644 --- a/rebar.config +++ b/rebar.config @@ -5,7 +5,21 @@ ] }. -{deps, []}. +{deps, [ + {eqwalizer_support, + {git_subdir, + "https://github.com/whatsapp/eqwalizer.git", + {branch, "main"}, + "eqwalizer_support"}} +]}. + +{project_plugins, [ + {eqwalizer_rebar3, + {git_subdir, + "https://github.com/whatsapp/eqwalizer.git", + {branch, "main"}, + "eqwalizer_rebar3"}} +]}. {dialyzer, [ {warnings, [unknown]} , {plt_apps, all_deps} diff --git a/rebar.lock b/rebar.lock index 57afcca..f1b8f58 100644 --- a/rebar.lock +++ b/rebar.lock @@ -1 +1,5 @@ -[]. +[{<<"eqwalizer_support">>, + {git_subdir,"https://github.com/whatsapp/eqwalizer.git", + {ref,"c3c3b284110dcacc0d2a3cb73875d5b5341b8dc2"}, + "eqwalizer_support"}, + 0}]. diff --git a/src/wa_raft.app.src b/src/wa_raft.app.src index d10417f..e1c2c39 100644 --- a/src/wa_raft.app.src +++ b/src/wa_raft.app.src @@ -13,7 +13,8 @@ %% NOTE: No more dependency is expected for this app {applications, [ kernel, - stdlib + stdlib, + eqwalizer_support ]}, {env, []}, {mod, {wa_raft_app, []}}