Просмотр исходного кода

Merge pull request #7 from jostar-y/master

fix: the generated tar package does not include the lib files
zhongwencool 2 лет назад
Родитель
Сommit
39d7d02678
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/emqx_plugrel.erl

+ 2 - 2
src/emqx_plugrel.erl

@@ -31,7 +31,7 @@ do(State) ->
         [Rel] ->
             Name = rlx_release:name(Rel),
             Version = rlx_release:vsn(Rel),
-            Apps = [App || {App, _} <- rlx_release:app_specs(Rel)],
+            Apps = [App || {App, _} <- rlx_release:goals(Rel)],
             PluginInfo = rebar_opts:get(Opts, emqx_plugrel),
             Info = collect_info(PluginInfo, Name, Version, Apps, State),
             ok = make_tar(Info, State);
@@ -80,7 +80,7 @@ cmd_oneline_output(Cmd) ->
         {ok, Line} ->
             bin(rebar_string:trim(Line, trailing, "\n"));
         {error, {Rc, Output}} ->
-            ?LOG(debug, "failed_run_cmd ~s~n, error=~p~noutput:~n~ts~n", [Rc, Output]),
+            ?LOG(debug, "failed_run_cmd ~s~n, error=~p~noutput:~n~ts~n", [Cmd, Rc, Output]),
             error
     end.