Skip to content

Commit

Permalink
better decoding of os_info for apple
Browse files Browse the repository at this point in the history
  • Loading branch information
ityonemo committed Aug 4, 2024
1 parent a041489 commit 5af5df9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions installer/mix.tasks/zig.get.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ defmodule Mix.Tasks.Zig.Get do
|> decode_os_info()
end

defp decode_os_info([arch, "apple" | _]), do: {"macos", arch}
defp decode_os_info([arch, _vendor, os | _]), do: {os, arch}

defp ensure_tar(%{os: "windows"} = opts), do: opts
Expand Down

0 comments on commit 5af5df9

Please sign in to comment.