Skip to content

override: [:deps] wrongly flags override as not needed #15407

@Gladear

Description

@Gladear

Existing issue

  • I have searched existing issues and could not find a duplicate.

Elixir and Erlang/OTP versions

Erlang/OTP 27 [erts-15.2.4] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.20.0-rc.5 (6050b84) (compiled with Erlang/OTP 27)

Operating system

macOS Sequoia 15.7.5

Current behavior

I tried to replace override: true by override: [...]:

{:pusher, "~> 2.4"},
{:websockex, "~> 0.5", override: [:pusher]},

When running mix deps.get, I get the following error:

Dependency websockex (Hex package) no longer requires :override on :pusher

However, if I remove override: [:pusher], running the command again, I get another error:

Because your app depends on pusher ~> 2.4 which depends on websockex ~> 0.4.0, websockex ~> 0.4.0 is required.
So, because your app depends on websockex ~> 0.5, version solving failed.
** (Mix) Hex dependency resolution failed

Note 1: using override: true works fine.
Note 2: I used the same pattern for another dependency, and it worked fine, this seem to be somehow specific to these two.

Expected behavior

Dependency resolution shouldn't flag override: [:pusher] as no longer needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions