From ec4d6d60c84424384b856348031c4d6bd0a210f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 2 Mar 2016 16:18:12 +0100 Subject: Properly write hex dependencies in rebar.config for Rebar3 --- core/compat.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/compat.mk') diff --git a/core/compat.mk b/core/compat.mk index c7faf9b..239bc1c 100644 --- a/core/compat.mk +++ b/core/compat.mk @@ -19,8 +19,12 @@ define compat_erlc_opts_to_list endef define compat_rebar_config -{deps, [$(call comma_list,$(foreach d,$(DEPS),\ - {$(call dep_name,$d),".*",{git,"$(call dep_repo,$d)","$(call dep_commit,$d)"}}))]}. +{deps, [ +$(call comma_list,$(foreach d,$(DEPS),\ + $(if $(filter hex,$(call dep_fetch,$d)),\ + {$(call dep_name,$d)$(comma)"$(call dep_repo,$d)"},\ + {$(call dep_name,$d)$(comma)".*"$(comma){git,"$(call dep_repo,$d)"$(comma)"$(call dep_commit,$d)"}}))) +]}. {erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}. endef -- cgit v1.2.3