summaryrefslogtreecommitdiff
path: root/src/rebar_app_discover.erl
diff options
context:
space:
mode:
authorsimonxu72 <simon.xu72@gmail.com>2018-11-13 13:19:13 +0800
committersimonxu72 <simon.xu72@gmail.com>2018-11-13 13:19:13 +0800
commit4014faf695c3da3a8f0c7aa088cdae0725433d16 (patch)
tree9601583c4314fd1fdca3c12d657ac54b286f9d21 /src/rebar_app_discover.erl
parent41d133856bf199034b0eeb0903bedc2071fba7e1 (diff)
parentd0e9a553468424b53aeb9907201d0b4f5aa4fad2 (diff)
merge from upstream/master
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r--src/rebar_app_discover.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index 74681c7..21dea29 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -280,7 +280,8 @@ find_apps(LibDirs, SrcDirs, Validate, State) ->
-spec find_app(file:filename_all(), valid | invalid | all) -> {true, rebar_app_info:t()} | false.
find_app(AppDir, Validate) ->
{Config, SrcDirs} = find_config_src(AppDir, ["src"]),
- AppInfo = rebar_app_info:update_opts(rebar_app_info:new(), dict:new(), Config),
+ AppInfo = rebar_app_info:update_opts(rebar_app_info:dir(rebar_app_info:new(), AppDir),
+ dict:new(), Config),
find_app_(AppInfo, AppDir, SrcDirs, Validate).
%% @doc check that a given app in a directory is there, and whether it's