summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rebar_plugins.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl
index 333d8a1..5a0ca3c 100644
--- a/src/rebar_plugins.erl
+++ b/src/rebar_plugins.erl
@@ -61,13 +61,10 @@ validate_plugin(Plugin) ->
{ok, Providers} ->
{true, Providers};
undefined ->
- Exports = sets:from_list(Plugin:module_info(exports)),
- Required = sets:from_list([{init,1},
- {do,1},
- {format_error,1}]),
- case sets:is_subset(Required, Exports) of
+ Exports = Plugin:module_info(exports),
+ case lists:member({init,1}, Exports) of
false ->
- ?WARN("Plugin ~p is not a provider. It will not be used.~n", [Plugin]),
+ ?WARN("Plugin ~p does not export init/1. It will not be used.~n", [Plugin]),
false;
true ->
{true, Plugin}