Skip to content

Commit

Permalink
Eliminate use of experimental function code:lib_dir/2
Browse files Browse the repository at this point in the history
The `code:lib_dir/2` function was introduced to support looking
into archives. Both archives and the `code:lib_dir/2` are marked
as experimental.

In the upcoming Erlang/OTP 27 release, `code:lib_dir/2` will be
deprecated. In some future release, the archive functionality will
be changed (`escript:extract/2` will continue to work, reading archive
members using `erl_prim_loader` will not).
  • Loading branch information
bjorng committed Feb 22, 2024
1 parent 8c571fd commit 9fb362e
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 @@ -741,7 +741,7 @@ maybe_check_for_undefined_functions_(State, Release) ->
%% without adding the erts application there will be warnings about
%% missing functions from the preloaded modules even though they
%% are in the runtime.
ErtsApp = code:lib_dir(erts, ebin),
ErtsApp = filename:join(code:lib_dir(erts), "ebin"),

%% xref library path is what is searched for functions used by the
%% project apps.
Expand Down

0 comments on commit 9fb362e

Please sign in to comment.