diff options
author | Tristan Sloughter <t@crashfast.com> | 2017-12-01 16:44:00 -0800 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2017-12-03 10:32:01 -0800 |
commit | 6e672852a72f51d088e16f3662b0299744435127 (patch) | |
tree | 71a4008d84b0b42379cd120456ae0eb1a2acc6e3 /src | |
parent | 6492020c4f3fa69611e5035bdf09a0a6f0e6615b (diff) |
fix code path when validating plugins
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_plugins.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl index 68ba6da..1fc01ff 100644 --- a/src/rebar_plugins.erl +++ b/src/rebar_plugins.erl @@ -105,7 +105,7 @@ 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], - code:add_pathsa(CodePaths), + 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, CodePaths++NewCodePaths), |