summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;