Elixir v1.10.4 released

@josevalim described it here:

Therefore, Elixir v1.11 will be released in October 2020. If there are any important bug fixes, we will continue releasing patch versions for Elixir v1.10. On that note, the latest Elixir v1.10.3 is already compatible with Erlang/OTP 23.

Source: Elixir v1.11 will be released in October 2020

So we have a problem with missing correct clasule for reference v1.10.4 which means it fallbacks to "v1.10." <> _ which then specifies such otp releases: ["21.3", "22.3"].

@josevalim I would like to suggest using Version.compare/2 which should reduce code. Just for example instead of:

  def elixir_to_otp(ref) do
    case ref do
      "v0" <> _ -> ["17.3"]
      "v1.0.0-" <> _ -> ["17.3"]
      "v1.0.0" -> ["17.3"]
      "v1.0.1" -> ["17.3"]
      "v1.0.2" -> ["17.3"]
      "v1.0.3" -> ["17.3"]
  # …

we could just write code like this one:

  def elixir_to_otp("v" <> version) do
    cond do
      Version.compare(version, "1.0.4") == :lt -> ["17.3"]
  # …
1 Like