         else
           partition(deps, not_ok, [dep | compile])
         end
+
       ok?(dep) ->
         partition(deps, not_ok, compile)
+
       true ->
         partition(deps, [dep | not_ok], compile)
     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.


  def run(args) do
    all = Mix.Dep.cached()

    unless "--no-deps-check" in args do
      deps_check(all, "--no-compile" in args)
    end

    load_paths =
      for dep <- all,
          path <- Mix.Dep.load_paths(dep) do
        _ = Code.prepend_path(path)
        path
      end
