           deps
         end)
     end
-    # case File.read("deps.lock") do
-    #   {:ok, info} ->
-    #     assert_no_merge_conflicts_in_lockfile("deps.lock", info)
-    #
-    #     case Code.eval_string(info, [], file: "deps.lock") do
-    #       {lock, _binding} when is_map(lock) -> lock
-    #       {_, _binding} -> %{}
-    #     end
-    #
-    #   {:error, _} ->
-    #     %{}
-    # end
   end
 
   defp create_mix_exs_file(env_path) do

    GenServer.call(Boyle, :get_state)
  end

  def reinstall do
    Mix.start()
    Mix.Project.pop()

    File.cd!(environment_path(), fn ->
      # Code.require_file("mix.exs")
      Code.load_file("mix.exs")
      # Mix.Project.push(CustomEnvironment)
      # IO.inspect(CustomEnvironment.project())
      Mix.Task.run("deps.get")
      Mix.Tasks.Deps.Compile.run([])
    end)
  end

  def paths do

  end

  def mk(name) do
    env_path = Path.join("./envs/", to_string(name))
    File.mkdir_p(env_path)
    create_mix_exs_file(env_path)
    create_deps_lock_file(env_path)
    reinstall(env_path)
    list()
  end

