summaryrefslogtreecommitdiff
path: root/src/rebar_plugins.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-08 10:01:44 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-08 10:01:44 -0600
commit557de6f8b4dccbc3055b222ef5d7b193cec1742a (patch)
tree3f8fb58918772a1d97ecf7ca7bc4ee68993e0b1f /src/rebar_plugins.erl
parent5c465514b285a31565ab4512e55bef12e9b5e0c5 (diff)
support base dir and properly reset deps_dir after plugin provider
Diffstat (limited to 'src/rebar_plugins.erl')
-rw-r--r--src/rebar_plugins.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl
index 3bf9f0b..1916c11 100644
--- a/src/rebar_plugins.erl
+++ b/src/rebar_plugins.erl
@@ -12,6 +12,7 @@
%% ===================================================================
install(State) ->
+ DepsDir = rebar_state:get(State, deps_dir, ?DEFAULT_DEPS_DIR),
State1 = rebar_state:set(State, deps_dir, ?DEFAULT_PLUGINS_DIR),
expand_plugins(?DEFAULT_PLUGINS_DIR),
Plugins = rebar_state:get(State1, plugins, []),
@@ -19,7 +20,7 @@ install(State) ->
handle_plugin(Plugin, State1)
end, Plugins),
- {ok, PluginProviders, rebar_state:set(State1, deps_dir, ?DEFAULT_DEPS_DIR)}.
+ {ok, PluginProviders, rebar_state:set(State1, deps_dir, DepsDir)}.
handle_plugin(Plugin, State) ->
try