Skip to content

No warning on duplicate application name #14972

@lud

Description

@lud

Hello,

Somebody tried to use my library :aoc in a new mix project that they also called :aoc.

To reproduce you can do this:

mix new aoc

And then add :aoc in the dependencies:

{:aoc, "~> 0.16.0"}

And finally run this:

mix deps.get
mix aoc.set

You will see that the compiler hangs.

The task does the following:

  • @requirements ["app.config"]
  • Application.ensure_all_started(:aoc)

Which may have an impact.

So Elixir doesn't throw an error when the app has the same name as one of the dependencies. Is that supported somehow? Is there anything I can add in my library to trigger a warning or an error?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions