summaryrefslogtreecommitdiff
path: root/src/rebar_prv_clean.erl
diff options
context:
space:
mode:
authoralisdair sullivan <alisdairsullivan@yahoo.ca>2017-02-26 11:00:31 -0600
committerGitHub <noreply@github.com>2017-02-26 11:00:31 -0600
commit1376967687921b25a39c876edc373331956f3e7c (patch)
treefe8e528c7533b9c23d013df588dbb0317698e516 /src/rebar_prv_clean.erl
parentffeb6828865bfa935d30be29502bfcd290d702ff (diff)
parent66a24391963f106d9652194d72d751197693d556 (diff)
Merge pull request #1498 from ferd/avoid-clean-wildcard-apps
Fix wildcard usage in rebar3 clean
Diffstat (limited to 'src/rebar_prv_clean.erl')
-rw-r--r--src/rebar_prv_clean.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_clean.erl b/src/rebar_prv_clean.erl
index 8f31fdd..d185f75 100644
--- a/src/rebar_prv_clean.erl
+++ b/src/rebar_prv_clean.erl
@@ -44,7 +44,8 @@ do(State) ->
case All of
true ->
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);
false ->
ProjectApps = rebar_state:project_apps(State1),