Skip to content

Commit f259224

Browse files
committed
Lock live view dependency on older Elixir versions
It gives a syntax error on version 1.1.0 and newer.
1 parent f5d8ab2 commit f259224

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

mix.exs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,18 @@ defmodule Appsignal.Phoenix.MixProject do
4040
system_version = System.version()
4141

4242
phoenix_live_view_version =
43-
case Version.compare(system_version, "1.12.0") do
44-
:lt -> ">= 0.9.0 and < 0.18.0"
45-
_ -> "~> 0.9 or ~> 1.0"
43+
case Version.compare(system_version, "1.14.0") do
44+
:lt ->
45+
"~> 0.9 or ~> 1.0.0"
46+
47+
_ ->
48+
case Version.compare(system_version, "1.12.0") do
49+
:lt ->
50+
">= 0.9.0 and < 0.18.0"
51+
52+
_ ->
53+
"~> 0.9 or ~> 1.0"
54+
end
4655
end
4756

4857
credo_version =

0 commit comments

Comments
 (0)