Skip to content

Commit

Permalink
Bump minimal required Elixir version
Browse files Browse the repository at this point in the history
Since PR #514, the [`Kernel.then/2`
macro](https://hexdocs.pm/elixir/Kernel.html#then/2) is used, which was
introduced in Elixir 1.12.0. If installed on older Elixir versions, it
will fail to compile with the error below.

```
==> dialyxir
Compiling 66 files (.ex)

== Compilation error in file lib/dialyxir/project.ex ==
** (CompileError) lib/dialyxir/project.ex:365: undefined function then/2
    (elixir) expanding macro: Kernel.|>/2
    lib/dialyxir/project.ex:365: Dialyxir.Project (module)
    (elixir) expanding macro: Kernel.if/2
    lib/dialyxir/project.ex:365: Dialyxir.Project (module)
```

Bump the minimal required Elixir version to communicate older versions
are no longer supported. Elixir 1.12 is also the oldest version tested
in the CI.
  • Loading branch information
tombruijn committed Aug 28, 2023
1 parent ffcd849 commit 70229b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Dialyxir.Mixfile do
[
app: :dialyxir,
version: @version,
elixir: ">= 1.6.0",
elixir: ">= 1.12.0",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
Expand Down

0 comments on commit 70229b0

Please sign in to comment.