diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index 791e4e99..765e2ac5 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -250,6 +250,9 @@ write_index_section(F, [{Section, DataFile, Mods}|Rest]) -> ok = file:write(F, "\n"), write_index_section(F, Rest). +%% fix for r15b which doesn't put the correct path in the `source` section +%% of `module_info(compile)` +strip_coverdir([]) -> ""; strip_coverdir(File) -> filename:join(lists:reverse(lists:sublist(lists:reverse(filename:split(File)), 2))).