Skip to content

Commit daed2df

Browse files
patrolsclaude
andauthored
Replace deprecated xref: [exclude:] with elixirc_options: [no_warn_undefined:] (#488)
Elixir 1.20 deprecates the project-level `xref: [exclude: ...]` option in favor of `elixirc_options: [no_warn_undefined: ...]`, which has been the canonical compiler option since Elixir 1.7. mint requires `~> 1.12`, so the new option is valid across the entire supported range — no version gating needed. Behavior is identical: the same modules/MFAs are excluded from undefined-function warnings. Verified `mix compile --warnings-as-errors` stays clean with castore (optional) absent. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d1c8c5c commit daed2df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mix.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ defmodule Mint.MixProject do
1313
elixirc_paths: elixirc_paths(Mix.env()),
1414
deps: deps(),
1515

16-
# Xref
17-
xref: [
18-
exclude: [
16+
# Suppress "undefined function" warnings for optional/runtime deps.
17+
elixirc_options: [
18+
no_warn_undefined: [
1919
{:ssl, :cipher_suites, 1},
2020
{:public_key, :cacerts_get, 0},
2121
CAStore

0 commit comments

Comments
 (0)