diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-10-15 11:56:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 11:56:57 -0400 |
commit | 7bfc8110d1736d2cbf61e19d2fc16dc8e854b460 (patch) | |
tree | 91f6606ad1083eea8e57fcc46821454180b50c94 /src/rebar_plugins.erl | |
parent | 86519cf743204eab1d922ca8133fbf00c66f9ee8 (diff) | |
parent | fb6de6e0e5dc0da1c4e64c166bcb69327420cb60 (diff) |
Merge pull request #1907 from ferd/refactor-env-paths
Refactor env path handling and fix some bugs related to it
Diffstat (limited to 'src/rebar_plugins.erl')
-rw-r--r-- | src/rebar_plugins.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl index d58675d..2a78c6e 100644 --- a/src/rebar_plugins.erl +++ b/src/rebar_plugins.erl @@ -122,12 +122,10 @@ handle_plugin(Profile, Plugin, State, Upgrade) -> %% Add newly built deps and plugin to code path State3 = rebar_state:update_all_plugin_deps(State2, Apps), NewCodePaths = [rebar_app_info:ebin_dir(A) || A <- ToBuild], - AllPluginEbins = filelib:wildcard(filename:join([rebar_dir:plugins_dir(State), "*", "ebin"])), - CodePaths = PreBuiltPaths++(AllPluginEbins--ToBuild), - code:add_pathsa(NewCodePaths++CodePaths), %% Store plugin code paths so we can remove them when compiling project apps State4 = rebar_state:update_code_paths(State3, all_plugin_deps, PreBuiltPaths++NewCodePaths), + rebar_paths:set_paths([plugins], State4), {plugin_providers(Plugin), State4} catch |