From 4a35276bdf93869f95344eaafb2571d3c731a615 Mon Sep 17 00:00:00 2001 From: Jean Bouchard Date: Fri, 16 Mar 2018 14:23:43 -0400 Subject: remove the .app from app_info --- src/rebar_app_discover.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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}}). -- cgit v1.1