         else
           partition(deps, not_ok, [dep | compile])
         end
+
       ok?(dep) ->
         partition(deps, not_ok, compile)
+
       true ->
         partition(deps, [dep | not_ok], compile)
     end

    _ = Code.delete_path(path)

    unless shared_build? do
      path |> Path.dirname |> File.rm_rf!
    end
  end


defmodule Mix.Tasks.Deps.Loadpaths do
  use Mix.Task

  import Mix.Dep,
    only: [loaded_by_name: 2, format_dep: 1, ok?: 1, format_status: 1, check_lock: 1]

  @moduledoc """
  Checks and loads all dependencies along the way.
