aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-11-21 16:41:16 +0100
committerLoïc Hoguin <[email protected]>2024-11-21 16:41:16 +0100
commit45c53065ec7d41e46d4eddb4f0c80adb75249bb4 (patch)
tree1a03fb690a655d54d0e4e821f3b839ece12e248e
parent9376f53f549c05cf692d0e259763049a039e96eb (diff)
downloaderlang.mk-45c53065ec7d41e46d4eddb4f0c80adb75249bb4.tar.gz
erlang.mk-45c53065ec7d41e46d4eddb4f0c80adb75249bb4.tar.bz2
erlang.mk-45c53065ec7d41e46d4eddb4f0c80adb75249bb4.zip
Reinstate dep_name as it's still used by RabbitMQ plugins
It will be removed at a later date.
-rw-r--r--CHANGELOG.asciidoc6
-rw-r--r--core/deps.mk4
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 863780e..83cdf68 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -34,10 +34,14 @@
as well as Cowboy, Ranch, Gun and Cowlib remain
in the index.
-2024/11/19: The deprecated defines `dep_fetch`, `dep_name`,
+2024/11/19: The deprecated defines `dep_fetch`,
`dep_repo` and `dep_commit` have been removed
in favor of their `query_*` equivalents.
+
+ The deprecated define `dep_name` will be
+ removed at a later date to give time to
+ users to upgrade.
++
The deprecated legacy fetch method has also
been removed (`dep_cowboy = https://... ref`
without an explicit fetch method). Adding "git"
diff --git a/core/deps.mk b/core/deps.mk
index 310db80..7819f90 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -111,6 +111,10 @@ query_extra_fail = -
query_absolute_path = $(addprefix $(DEPS_DIR)/,$(call query_name,$1))
+# Deprecated legacy query function. Used by RabbitMQ and its third party plugins.
+# Can be removed once RabbitMQ has been updated and enough time has passed.
+dep_name = $(call query_name,$(1))
+
# Application directories.
LOCAL_DEPS_DIRS = $(foreach a,$(LOCAL_DEPS),$(if $(wildcard $(APPS_DIR)/$a),$(APPS_DIR)/$a))