From a9c35b6a159662cfae9ed8beaa62b7756b48765c Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Wed, 3 Apr 2024 00:13:55 +0000 Subject: [PATCH] Fix type coercion with API usage While running the rebar3 suite on the newest relx release, a run failed because when called with list directories the conversion failed. Instead we use a unicode-safe approach that better supports the calls we need. --- src/rlx_assemble.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rlx_assemble.erl b/src/rlx_assemble.erl index 4763e01ce..b7a6d2cc8 100644 --- a/src/rlx_assemble.erl +++ b/src/rlx_assemble.erl @@ -777,7 +777,7 @@ add_project_apps_to_xref(Rf, [AppSpec | Rest], State) -> {ok, App=#{app_type := project}} -> case xref:add_application( Rf, - binary_to_list(rlx_app_info:dir(App)), + unicode:characters_to_list(rlx_app_info:dir(App)), [{name, rlx_app_info:name(App)}, {warnings, false}]) of {ok, _} ->