Skip to content

Commit f4da24f

Browse files
authored
Fix Elixir 1.11 warnings (#265)
* Remove warnings on Elixir 1.11 * Add Elixir 1.11 to CI * Remove Elixir 1.5 and 1.6 from CI * Bump minimum required version
1 parent 236a57e commit f4da24f

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- elixir: 1.5.3
18-
otp: 19.3.6.13
19-
- elixir: 1.6.6
20-
otp: 19.3.6.13
2117
- elixir: 1.7.4
2218
otp: 19.3.6.13
2319
- elixir: 1.8.2
@@ -27,8 +23,10 @@ jobs:
2723
warnings_as_errors: true # not 1.10 as its --warnigs-as-errors has bugs https://github.com/elixir-lang/elixir/issues/10073
2824
- elixir: 1.10.3
2925
otp: 21.3.8.17
30-
- elixir: 1.10.3
31-
otp: 23.0.3
26+
- elixir: 1.11.1
27+
otp: 21.3.8.17
28+
- elixir: 1.11.1
29+
otp: 23.1.1
3230
check_formatted: true
3331
env:
3432
MIX_ENV: test

lib/consumer_supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ defmodule ConsumerSupervisor do
571571
apply(m, f, a)
572572
catch
573573
kind, reason ->
574-
{:error, exit_reason(kind, reason, System.stacktrace())}
574+
{:error, exit_reason(kind, reason, __STACKTRACE__)}
575575
else
576576
{:ok, pid, extra} when is_pid(pid) -> {:ok, pid, extra}
577577
{:ok, pid} when is_pid(pid) -> {:ok, pid}

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule GenStage.Mixfile do
77
[
88
app: :gen_stage,
99
version: @version,
10-
elixir: "~> 1.5",
10+
elixir: "~> 1.7",
1111
package: package(),
1212
description: "Producer and consumer actors with back-pressure for Elixir",
1313
start_permanent: Mix.env() == :prod,

test/consumer_supervisor_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ defmodule ConsumerSupervisorTest do
611611
try do
612612
throw(:oops)
613613
catch
614-
:oops -> System.stacktrace()
614+
:oops -> __STACKTRACE__
615615
end
616616

617617
:erlang.raise(class, :oops, stack)

0 commit comments

Comments
 (0)