summaryrefslogtreecommitdiff
path: root/src/rebar_app_discover.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2018-10-29 11:38:00 -0600
committerGitHub <noreply@github.com>2018-10-29 11:38:00 -0600
commit0f6f1630176da37af5971a6fa51f57c0733f949d (patch)
tree11f95f48398960066ed1e57ee3857be49e7a615a /src/rebar_app_discover.erl
parente837ba761ed372e2db9b07f7d00eefb4d2e5b564 (diff)
set app's dir before setting app_info deps (#1928)
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