Bläddra i källkod

Fix wildcard usage in rebar3 clean

The wildcard usage could fail on some OSes by being passed directly and
just not finding libs and erroring out
pull/1498/head
Fred Hebert 8 år sedan
förälder
incheckning
66a2439196
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      src/rebar_prv_clean.erl

+ 2
- 1
src/rebar_prv_clean.erl Visa fil

@ -44,7 +44,8 @@ do(State) ->
case All of case All of
true -> true ->
DepsDir = rebar_dir:deps_dir(State1), DepsDir = rebar_dir:deps_dir(State1),
AllApps = rebar_app_discover:find_apps([filename:join(DepsDir, "*")], all),
DepsDirs = filelib:wildcard(filename:join(DepsDir, "*")),
AllApps = rebar_app_discover:find_apps(DepsDirs, all),
clean_apps(State1, Providers, AllApps); clean_apps(State1, Providers, AllApps);
false -> false ->
ProjectApps = rebar_state:project_apps(State1), ProjectApps = rebar_state:project_apps(State1),

Laddar…
Avbryt
Spara