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:
parent
d9cb6d1af7
commit
27ed8f5647
|
@ -31,8 +31,7 @@ do(State) ->
|
||||||
{ok, State}.
|
{ok, State}.
|
||||||
|
|
||||||
exec_configure({'configure-deps', Cmd}, Dir) ->
|
exec_configure({'configure-deps', Cmd}, Dir) ->
|
||||||
c:cd(Dir),
|
rebar_utils:sh(Cmd, [{cd, Dir}, {use_stdout, true}]);
|
||||||
os:cmd(Cmd);
|
|
||||||
exec_configure(_, Acc) -> Acc.
|
exec_configure(_, Acc) -> Acc.
|
||||||
|
|
||||||
parse_pre_hooks({pre_hooks, PreHooks}, Acc) ->
|
parse_pre_hooks({pre_hooks, PreHooks}, Acc) ->
|
||||||
|
|
Loading…
Reference in New Issue