Skip to content

Commit

Permalink
Merge pull request #1942 from aboroska/fix-plugins-list
Browse files Browse the repository at this point in the history
Fix plugins list display to include project plugins
  • Loading branch information
ferd authored Nov 17, 2018
2 parents b8665dd + 7dd8545 commit 62663bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rebar_prv_plugins.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ do(State) ->
RebarOpts = rebar_state:opts(State),
SrcDirs = rebar_dir:src_dirs(RebarOpts, ["src"]),
Plugins = rebar_state:get(State, plugins, []),
ProjectPlugins = rebar_state:get(State, project_plugins, []),
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, State),
display_plugins("Local plugins", Apps, Plugins),
display_plugins("Local plugins", Apps, Plugins ++ ProjectPlugins),
{ok, State}.

-spec format_error(any()) -> iolist().
Expand Down

0 comments on commit 62663bc

Please sign in to comment.