   @moduledoc """
   Utilities for comparing build artifacts.
   """
-
-  @tmp_env_vars ~w(TMPDIR TMP TEMP)s
 
   @known_chunks ~w(
     abstract_code

    else
      diff =
        if String.ends_with?(file1, ".beam") do
          beam_diff(content1, content2)
        else
          file_diff(file1, file2)
        end

    end
  end

  defp beam_diff(file1, content1, file2, content2) do
    with {:ok, {module, chunks1}} <- :beam_lib.chunks(content1, @known_chunks),
         {:ok, {^module, chunks2}} <- :beam_lib.chunks(content2, @known_chunks),
         true <- chunks1 != chunks2 do
      for {chunk1, chunk2} <- Enum.zip(chunks1, chunks2), chunk1 != chunk2 do
        tmp_file1 =
          chunk1
          |> inspect(pretty: true, limit: :infinity)
          |> write_tmp()

        tmp_file2 =
          chunk2
          |> inspect(pretty: true, limit: :infinity)
          |> write_tmp()

        file_diff(tmp_file1, tmp_file2)
      end
    else
      _ ->
        file_diff(file1, file2)
    end
  end

  defp file_diff(file1, file2) do
    {diff, _} = System.cmd("diff", [file1, file2])
    diff
  end

  defp relative_paths(dir) do
