From 2d4ba55f57176b181c23bac0eb178c83ca56dcc7 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 6 Sep 2015 18:32:52 -0500 Subject: fix plugins porvider use of rebar_dir --- src/rebar_prv_plugins.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_prv_plugins.erl b/src/rebar_prv_plugins.erl index 328958e..20bc1ea 100644 --- a/src/rebar_prv_plugins.erl +++ b/src/rebar_prv_plugins.erl @@ -34,7 +34,7 @@ do(State) -> GlobalConfigFile = rebar_dir:global_config(), GlobalConfig = rebar_state:new(rebar_config:consult_file(GlobalConfigFile)), GlobalPlugins = rebar_state:get(GlobalConfig, plugins, []), - GlobalPluginsDir = filename:join(rebar_dir:global_cache_dir(State), "plugins"), + GlobalPluginsDir = filename:join(rebar_dir:global_cache_dir(rebar_state:opts(State)), "plugins"), display_plugins("Global plugins", GlobalPluginsDir, GlobalPlugins), Plugins = rebar_state:get(State, plugins, []), -- cgit v1.1