浏览代码

Merge pull request #1957 from tsloughter/subdir-behaviours

search subdirectories as well for imports/transforms/behaviours
pull/1965/head
Fred Hebert 6 年前
提交者 GitHub
父节点
当前提交
ebc1186c34
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入10 次删除
  1. +1
    -10
      src/rebar_compiler_erl.erl

+ 1
- 10
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).

正在加载...
取消
保存