aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2025-02-11 15:34:58 +0100
committerLoïc Hoguin <[email protected]>2025-02-11 15:34:58 +0100
commite9331856f9b0fab47ad10104721472262a501af9 (patch)
treed05a461729672cdb1379ef6ac0bd33cc82f39a68 /plugins
parent509b15b59e6034b2099a356b243b017fd099e2af (diff)
downloaderlang.mk-e9331856f9b0fab47ad10104721472262a501af9.tar.gz
erlang.mk-e9331856f9b0fab47ad10104721472262a501af9.tar.bz2
erlang.mk-e9331856f9b0fab47ad10104721472262a501af9.zip
Add support for specifying Hex requirements for dependencies
This allows overriding the default which is to use the same explicit version as the dep_* line, and instead specify ranges of versions.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hex.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/hex.mk b/plugins/hex.mk
index 44beb65..482a56a 100644
--- a/plugins/hex.mk
+++ b/plugins/hex.mk
@@ -91,7 +91,7 @@ define hex_tarball_create.erl
<<"$(if $(subst hex,,$(call query_fetch_method,$d)),$d,$(if $(word 3,$(dep_$d)),$(word 3,$(dep_$d)),$d))">> => #{
<<"app">> => <<"$d">>,
<<"optional">> => false,
- <<"requirement">> => <<"$(call query_version,$d)">>
+ <<"requirement">> => <<"$(if $(hex_req_$d),$(strip $(hex_req_$d)),$(call query_version,$d))">>
},)
$(if $(DEPS),dummy => dummy)
},