       consolidate_protocols: Keyword.get(opts, :consolidate_protocols, true)
     ]
 
+    started_apps = Application.started_applications()
     :ok = Mix.Local.append_archives()
     :ok = Mix.ProjectStack.push(@mix_install_project, config, "nofile")
     build_dir = Path.join(dir, "_build")

    after
      Mix.ProjectStack.pop()
    end
  end

  defp maybe_expand_path_dep(opts) do

        end

        Mix.Task.rerun("deps.loadpaths")

        # Hex and SSL can use a good amount of memory after the registry fetching,
        # so we stop any app started during deps resolution.
        stop_apps(Application.started_applications() -- started_apps)

        Mix.Task.rerun("compile")
      end)

