Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove application/0 from mix.exs #376

Merged
merged 2 commits into from
Jul 2, 2020
Merged

Conversation

wojtekmach
Copy link
Contributor

Since Elixir v1.4 introduced "application inference" we don't need to manually set :applications, as it's inferred from deps. In fact, setting :applications explicitly can be harmful because it overrides inference, so if you add another dep but forget to update this list, that application won't be part of the release. That's exactly the reason for the recent bug, setting applications: [] was overriding inference.

Since [Elixir v1.4 introduced "application inference"](https://github.com/elixir-lang/elixir/blob/v1.4/CHANGELOG.md#application-inference) we don't need to manually set :applications, as it's inferred from deps. In fact, setting :applications explicitly can be harmful because it overrides inference, so if you add another dep but forget to update this list, that application won't be part of the release. That's exactly the reason for the recent bug, setting `applications: []` was overriding inference.
@RobertDober
Copy link
Collaborator

Ty @wojtekmach so this is even a better fix for #375 then, correct?

@RobertDober
Copy link
Collaborator

oh I cant'read you said so, thx again...

@RobertDober RobertDober merged commit 6d9e8a8 into pragdave:master Jul 2, 2020
@wojtekmach wojtekmach deleted the patch-1 branch July 2, 2020 09:16
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