erlang.mk
erlang.mk copied to clipboard
case_clause in dep_autopatch_rebar.erl when transforming git_subdir
Rebar 3.14 added git_subdir
to its supported dependency formats. See https://rebar3.org/docs/configuration/dependencies/. These have 4 elements. This causes dep_autopatch_rebar.erl
to fail with the following error:
Runtime terminating during boot ({{case_clause,{git_subdir,"https://github.com/whatsapp/eqwalizer.git",{branch,"main"},"eqwalizer_support"}},...
rebar.config references eqWAlizer, following the instructions here: https://github.com/whatsapp/eqwalizer?tab=readme-ov-file#using-it-with-rebar3-projects
In the case of eqwalizer, because it's only used at build-time, I can probably work around this with a rebar profile that erlang.mk will ignore. But with other git_subdir
dependencies, such as opentelemetry-erlang, this won't be feasible.