Skip to content

Commit cf4e025

Browse files
authored
Merge pull request #39 from UncleGrumpy/fix_external
2 parents 5e49337 + acb401b commit cf4e025

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/atomvm_packbeam_provider.erl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
]).
4040

4141
-define(DEFAULT_OPTS, #{
42-
external_avms => [],
42+
external => [],
4343
force => false,
4444
prune => false,
4545
start => undefined,
@@ -108,7 +108,7 @@ do(State) ->
108108
ok = do_packbeam(
109109
rebar_state:project_apps(State),
110110
lists:usort(rebar_state:all_deps(State)),
111-
maps:get(external_avms, Opts),
111+
maps:get(external, Opts),
112112
maps:get(prune, Opts),
113113
maps:get(force, Opts),
114114
get_start_module(Opts),
@@ -153,13 +153,13 @@ squash_external_avm({external, AVMPath}, Accum) ->
153153
StrippedPath = filename:absname(string:strip(AVMPath, both)),
154154
case filelib:is_file(StrippedPath) of
155155
true ->
156-
case proplists:get_value(external_avms, Accum) of
156+
case proplists:get_value(external, Accum) of
157157
undefined ->
158-
[{external_avms, [StrippedPath]} | Accum];
158+
[{external, [StrippedPath]} | Accum];
159159
OtherAVMs ->
160160
[
161-
{external_avms, [StrippedPath | OtherAVMs]}
162-
| proplists:delete(external_avms, Accum)
161+
{external, [StrippedPath | OtherAVMs]}
162+
| proplists:delete(external, Accum)
163163
]
164164
end;
165165
_ ->

0 commit comments

Comments
 (0)