aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-05-05 14:43:33 +0200
committerLoïc Hoguin <[email protected]>2023-05-05 16:14:06 +0200
commit2f5e90da5156a54275f30b6b4a4051774adea3da (patch)
tree2150f766e059809b8df6e897f5bc096a4618fbc8 /core/deps.mk
parent9fd062209fcdb05331dc0b8aa8cd831723bdf6eb (diff)
downloaderlang.mk-2f5e90da5156a54275f30b6b4a4051774adea3da.tar.gz
erlang.mk-2f5e90da5156a54275f30b6b4a4051774adea3da.tar.bz2
erlang.mk-2f5e90da5156a54275f30b6b4a4051774adea3da.zip
Autopatch: Move to Rebar3
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/deps.mk b/core/deps.mk
index e359db5..d07bb0c 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -21,8 +21,8 @@ export DEPS_DIR
REBAR_DEPS_DIR = $(DEPS_DIR)
export REBAR_DEPS_DIR
-REBAR_GIT ?= https://github.com/rebar/rebar
-REBAR_COMMIT ?= 576e12171ab8d69b048b827b92aa65d067deea01
+REBAR3_GIT ?= https://github.com/erlang/rebar3
+REBAR3_COMMIT ?= 3f563feaf1091a1980241adefa83a32dd2eebf7c # 3.20.0
# External "early" plugins (see core/plugins.mk for regular plugins).
# They both use the core_dep_plugin macro.
@@ -301,10 +301,10 @@ define dep_autopatch_fetch_rebar
endef
define dep_autopatch_fetch_rebar2
- if [ ! -d $(ERLANG_MK_TMP)/rebar ]; then \
- git clone -q -n -- $(REBAR_GIT) $(ERLANG_MK_TMP)/rebar; \
- cd $(ERLANG_MK_TMP)/rebar; \
- git checkout -q $(REBAR_COMMIT); \
+ if [ ! -d $(ERLANG_MK_TMP)/rebar3 ]; then \
+ git clone -q -n -- $(REBAR3_GIT) $(ERLANG_MK_TMP)/rebar3; \
+ cd $(ERLANG_MK_TMP)/rebar3; \
+ git checkout -q $(REBAR3_COMMIT); \
./bootstrap; \
cd -; \
fi
@@ -321,7 +321,7 @@ endef
define dep_autopatch_rebar.erl
application:load(rebar),
application:set_env(rebar, log_level, debug),
- rmemo:start(),
+ {module, rebar3} = c:l(rebar3),
Conf1 = case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config)") of
{ok, Conf0} -> Conf0;
_ -> []