Hello,
Somebody tried to use my library :aoc in a new mix project that they also called :aoc.
To reproduce you can do this:
And then add :aoc in the dependencies:
And finally run this:
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.
Hello,
Somebody tried to use my library
:aocin a new mix project that they also called:aoc.To reproduce you can do this:
And then add
:aocin the dependencies:And finally run this:
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.