Improve rebar3 configure-deps plugin output

Switch to using rebar_utils:sh/2 instead of os:cmd/1 to spawn ./configure
so that output can be monitored and errors detected
This commit is contained in:
Stu Tomlinson 2020-09-23 17:56:49 +01:00
parent d9cb6d1af7
commit 27ed8f5647
1 changed files with 1 additions and 2 deletions

View File

@ -31,8 +31,7 @@ do(State) ->
{ok, State}.
exec_configure({'configure-deps', Cmd}, Dir) ->
c:cd(Dir),
os:cmd(Cmd);
rebar_utils:sh(Cmd, [{cd, Dir}, {use_stdout, true}]);
exec_configure(_, Acc) -> Acc.
parse_pre_hooks({pre_hooks, PreHooks}, Acc) ->