Skip to content

Commit 318eaeb

Browse files
author
José Valim
committed
Add some comments to Mix.Deps.Retriever
1 parent 0a182b4 commit 318eaeb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/mix/lib/mix/deps/retriever.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ defmodule Mix.Deps.Retriever do
4949
scms = Mix.SCM.available
5050
Mix.Project.recur(config, fn _ ->
5151
from = current_source(:mix)
52+
53+
# The manager must be nil because mix supports mix,
54+
# rebar and make dependencies/managers.
5255
(Mix.project[:deps] || []) |> Enum.map(update(&1, scms, nil, from))
5356
end) |> List.concat
5457
end
@@ -57,6 +60,8 @@ defmodule Mix.Deps.Retriever do
5760
scms = Mix.SCM.available
5861
Mix.Rebar.recur(dir, fn config ->
5962
from = current_source(:rebar)
63+
64+
# Rebar dependencies are always managed by rebar.
6065
Mix.Rebar.deps(config) |> Enum.map(update(&1, scms, :rebar, from))
6166
end) |> List.concat
6267
end

0 commit comments

Comments
 (0)