From 4067a0dd52cf6334ac984e1ff5783284d5c53525 Mon Sep 17 00:00:00 2001 From: Rob Ashton Date: Tue, 16 Jul 2019 17:44:00 +0000 Subject: Dedup dep list --- src/rebar_compiler_erl.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1