summaryrefslogtreecommitdiff
path: root/src/rebar_app_discover.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-03-30 10:45:50 -0400
committerFred Hebert <mononcqc@ferd.ca>2018-03-30 10:45:50 -0400
commit8b061497e2db39b17323c35dc8c020b67c5032fc (patch)
tree31fbc73c149b61705b48dd846fbaa093457867e7 /src/rebar_app_discover.erl
parent02a02d729545fa08d20402fec6e295a53caae43e (diff)
parentb5330f5e90811710f48cf63f73a0272f9d2f1551 (diff)
Merge branch 'hommeabeil-fix_skip_compile_dep'
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r--src/rebar_app_discover.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl
index 1c02a48..441521b 100644
--- a/src/rebar_app_discover.erl
+++ b/src/rebar_app_discover.erl
@@ -411,12 +411,13 @@ try_handle_app_src_file(_AppInfo, _, _AppDir, _AppSrcFile, valid) ->
false;
try_handle_app_src_file(AppInfo, _, AppDir, [File], Validate) when Validate =:= invalid
; Validate =:= all ->
- AppInfo1 = create_app_info(AppInfo, AppDir, File),
+ AppInfo1 = rebar_app_info:app_file(AppInfo, undefined),
+ AppInfo2 = create_app_info(AppInfo1, AppDir, File),
case filename:extension(File) of
".script" ->
- {true, rebar_app_info:app_file_src_script(AppInfo1, File)};
+ {true, rebar_app_info:app_file_src_script(AppInfo2, File)};
_ ->
- {true, rebar_app_info:app_file_src(AppInfo1, File)}
+ {true, rebar_app_info:app_file_src(AppInfo2, File)}
end;
try_handle_app_src_file(_AppInfo, _, _AppDir, Other, _Validate) ->
throw({error, {multiple_app_files, Other}}).