From 8c4a74a3ed9ddd9841e6596ca86b81f3d43906c0 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 25 Nov 2018 10:29:14 -0700 Subject: search subdirectories as well for imports/transforms/behaviours --- src/rebar_compiler_erl.erl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/rebar_compiler_erl.erl b/src/rebar_compiler_erl.erl index f0ae6f4..0a560cd 100644 --- a/src/rebar_compiler_erl.erl +++ b/src/rebar_compiler_erl.erl @@ -317,16 +317,7 @@ expand_file_names(Files, Dirs) -> true -> [Incl]; false -> - lists:flatmap( - fun(Dir) -> - FullPath = filename:join(Dir, Incl), - case filelib:is_regular(FullPath) of - true -> - [FullPath]; - false -> - [] - end - end, Dirs) + rebar_utils:find_files_in_dirs(Dirs, Incl, true) end end, Files). -- cgit v1.1