summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-09-06 18:32:52 -0500
committerTristan Sloughter <t@crashfast.com>2015-09-06 18:32:52 -0500
commit2d4ba55f57176b181c23bac0eb178c83ca56dcc7 (patch)
tree49109ab7dabf2e52cc5e73c1d2c05cd88d3ca5a7
parent5223175c2633d2e81c4820a6e883f03d8beb92eb (diff)
fix plugins porvider use of rebar_dir
-rw-r--r--src/rebar_prv_plugins.erl2
1 files changed, 1 insertions, 1 deletions
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, []),