Skip to content

Commit

Permalink
Fix type coercion with API usage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ferd committed Apr 3, 2024
1 parent a772620 commit a9c35b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rlx_assemble.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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, _} ->
Expand Down

0 comments on commit a9c35b6

Please sign in to comment.