 
       # The manager must be nil because mix supports mix,
       # rebar and make dependencies/managers.
-      (Mix.project[:deps] || []) |> Enum.map(update(&1, scms, nil, from))
+      (Mix.project[:deps] || []) |> Enum.map(update(&1, scms, from))
     end) |> List.concat
   end
 

        "deprecated, please use Mix.Version instead")
    end

    if Mix.Deps.available?(dep) do
      cond do
        # Force all dependencies of a rebar dependency to be managed by rebar
        manager == :rebar or rebarconfig?(dep) or rebarexec?(dep) ->
          rebar_dep(dep)

        mixfile?(dep) ->
          Mix.Deps.in_dependency(dep, fn project ->
            mix_dep(dep, project)
          end)

        makefile?(dep) ->
          make_dep(dep)

        true ->
          dep.manager(manager)
      end
    else
      dep
    end
  end


    # Don't run recursively for the top-level project
    scms = Mix.SCM.available
    from = current_source(:mix)
    (Mix.project[:deps] || []) |> Enum.map(update(&1, scms, from))
  end

  @doc """
