Skip to content

Replace deprecated xref config with elixirc_options - #200

Merged
josevalim merged 1 commit into
phoenixframework:mainfrom
wimwian:fix/deprecated-xref-config
Jul 26, 2026
Merged

Replace deprecated xref config with elixirc_options#200
josevalim merged 1 commit into
phoenixframework:mainfrom
wimwian:fix/deprecated-xref-config

Conversation

@wimwian

@wimwian wimwian commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Mix 1.20 deprecated the xref: [exclude: ...] project config key in favor of elixirc_options: [no_warn_undefined: ...]. Every project compiling phoenix_ecto as a dependency currently sees:

warning: "xref: [exclude: ...]" in your mix.exs file is deprecated, instead use: "elixirc_options: [no_warn_undefined: ...]"

This PR is a config-key rename only — same excluded MFAs, no behavior change. Verified mix compile --force produces no warnings after the change.

Mix 1.20 deprecated the `xref: [exclude: ...]` project config key in
favor of `elixirc_options: [no_warn_undefined: ...]`. Every project
compiling phoenix_ecto as a dependency currently sees:

    warning: "xref: [exclude: ...]" in your mix.exs file is deprecated,
    instead use: "elixirc_options: [no_warn_undefined: ...]"

This is a config-key rename only, no behavior change.
@josevalim
josevalim merged commit d0b0206 into phoenixframework:main Jul 26, 2026
2 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants