summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Ashton <robashton@codeofrob.com>2019-07-16 17:44:00 +0000
committerRob Ashton <robashton@codeofrob.com>2019-07-16 17:44:00 +0000
commit4067a0dd52cf6334ac984e1ff5783284d5c53525 (patch)
treebedb3a0be46cd7eb1444a7d6ca1eb2bd95308bd3 /src
parent361e8e47d5857059b0483cbd8d6612eb37b454dd (diff)
Dedup dep list
Diffstat (limited to 'src')
-rw-r--r--src/rebar_compiler_erl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_compiler_erl.erl b/src/rebar_compiler_erl.erl
index a39e906..26ccd6e 100644
--- a/src/rebar_compiler_erl.erl
+++ b/src/rebar_compiler_erl.erl
@@ -78,7 +78,7 @@ needed_files(Graph, FoundFiles, _, AppInfo) ->
dependencies(Source, SourceDir, Dirs) ->
case file:open(Source, [read]) of
{ok, Fd} ->
- Incls = parse_attrs(Fd, [], SourceDir),
+ Incls = lists:usort(parse_attrs(Fd, [], SourceDir)),
AbsIncls = expand_file_names(Incls, Dirs),
ok = file:close(Fd),
AbsIncls;