From 9320f16e8d308b35237ca6aa35c64514220e938a Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Thu, 4 Jun 2026 13:19:15 +0200 Subject: [PATCH 1/3] Fix Elixir 1.20 warnings --- lib/logger_backends/watcher.ex | 1 - mix.exs | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/logger_backends/watcher.ex b/lib/logger_backends/watcher.ex index 4f7c863..901d228 100644 --- a/lib/logger_backends/watcher.ex +++ b/lib/logger_backends/watcher.ex @@ -1,7 +1,6 @@ defmodule LoggerBackends.Watcher do @moduledoc false - require Logger use GenServer def start_link(tuple) do diff --git a/mix.exs b/mix.exs index 0d5f132..7cafe85 100644 --- a/mix.exs +++ b/mix.exs @@ -12,7 +12,6 @@ defmodule LoggerBackends.MixProject do start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), - preferred_cli_env: [docs: :docs, "hex.publish": :docs], # Hex description: "Logger backends functionality for Elixir v1.15+", @@ -31,6 +30,10 @@ defmodule LoggerBackends.MixProject do ] end + def cli do + [preferred_envs: [docs: :docs, "hex.publish": :docs]] + end + defp docs do [ main: "LoggerBackends", From a6d4556dd66dca719d0bc97bd768b9472169c03b Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Thu, 4 Jun 2026 13:22:44 +0200 Subject: [PATCH 2/3] FIXUP --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54d22c7..65b801a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,12 +9,12 @@ on: jobs: test: name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}}) - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: include: - - otp: '25' + - otp: "29" elixir: main lint: true env: @@ -30,7 +30,7 @@ jobs: with: otp-version: ${{ matrix.otp }} elixir-version: ${{ matrix.elixir }} - version-type: 'strict' + version-type: "strict" - name: Install dependencies run: mix do deps.get --only test, deps.compile From 5959907c0ea02f9d12803db120432d296053d1dd Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Thu, 4 Jun 2026 13:23:28 +0200 Subject: [PATCH 3/3] FIXUP --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 65b801a..1ae4dbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: include: - - otp: "29" + - otp: "29.0.1" elixir: main lint: true env: