Skip to content

Commit 0908e55

Browse files
author
José Valim
committed
Reduce amount of noise on elixir manifest files
1 parent 164d1d0 commit 0908e55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/mix/lib/mix/tasks/compile.elixir.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,19 @@ defmodule Mix.Tasks.Compile.Elixir do
6464
defp each_module(pid, compile_path, cwd, source, module, binary) do
6565
source = Path.relative_to(source, cwd)
6666
bin = atom_to_binary(module)
67-
beam = Path.join(compile_path, bin <> ".beam")
67+
beam = compile_path
68+
|> Path.join(bin <> ".beam")
6869
|> Path.relative_to(cwd)
6970

7071
deps = Kernel.LexicalTracker.remotes(module)
72+
|> List.delete(module)
7173
|> :lists.usort
7274
|> Enum.map(&atom_to_binary(&1))
7375
|> Enum.reject(&match?("elixir_" <> _, &1))
7476

7577
files = get_beam_files(binary, cwd)
7678
|> List.delete(source)
79+
|> Enum.filter(&(Path.type(&1) == :relative))
7780

7881
:gen_server.cast(pid, {:store, beam, bin, source, deps, files, binary})
7982
end

0 commit comments

Comments
 (0)