summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-02-26 12:49:01 -0500
committerFred Hebert <mononcqc@ferd.ca>2017-02-26 12:58:46 -0500
commit7c125d95f0583cb200c47c0c6af301c1182ce463 (patch)
treeabfa7f2599760991f62e4f4476d1854a94caff93 /src
parent66a24391963f106d9652194d72d751197693d556 (diff)
More fixes for bad calls to find_apps
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_plugins.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_prv_plugins.erl b/src/rebar_prv_plugins.erl
index 9e04fa8..c76dae1 100644
--- a/src/rebar_prv_plugins.erl
+++ b/src/rebar_prv_plugins.erl
@@ -42,9 +42,9 @@ do(State) ->
RebarOpts = rebar_state:opts(State),
SrcDirs = rebar_dir:src_dirs(RebarOpts, ["src"]),
Plugins = rebar_state:get(State, plugins, []),
- PluginsDir = filename:join(rebar_dir:plugins_dir(State), "*"),
- CheckoutsDir = filename:join(rebar_dir:checkouts_dir(State), "*"),
- Apps = rebar_app_discover:find_apps([CheckoutsDir, PluginsDir], SrcDirs, all),
+ PluginsDirs = filelib:wildcard(filename:join(rebar_dir:plugins_dir(State), "*")),
+ CheckoutsDirs = filelib:wildcard(filename:join(rebar_dir:checkouts_dir(State), "*")),
+ Apps = rebar_app_discover:find_apps(CheckoutsDirs++PluginsDirs, SrcDirs, all),
display_plugins("Local plugins", Apps, Plugins),
{ok, State}.