Skip to content

Update mix.exs of guide to use :extra_applications #918

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

Merged
merged 1 commit into from
Jan 7, 2017
Merged

Update mix.exs of guide to use :extra_applications #918

merged 1 commit into from
Jan 7, 2017

Conversation

harfangk
Copy link
Contributor

@harfangk harfangk commented Jan 7, 2017

Mix 1.4 introduced automatic inference of required applications from
dependencies list. Now Mix creates :extra_applications instead of
:applications by default in application configuration in mix.exs.
This commit updates the example mix.exs configurations in the guide to
reflect that change.

Signed-off-by: Bonghyun Kim bonghyun.d.kim@gmail.com

Mix 1.4 introduced automatic inference of required applications from
dependencies list. Now Mix creates `:extra_applications` instead of
`:applications` by default in application configuration in `mix.exs`.
This commit updates the example `mix.exs` configurations in the guide to
reflect that change.

Signed-off-by: Bonghyun Kim <bonghyun.d.kim@gmail.com>
@harfangk
Copy link
Contributor Author

harfangk commented Jan 7, 2017

There are two other potential cases that I found.

https://hexdocs.pm/mix/1.4.0/Mix.Tasks.Compile.App.html#content

def application do
[mod: {MyApp, []},
env: [default: :value],
applications: [:crypto]]
end

http://elixir-lang.org/getting-started/erlang-libraries.html#the-crypto-module

def application do
[applications: [:crypto]]
end

I didn't include them in the PR because they are still correct usage, but would like to bring them to attention.

@josevalim
Copy link
Member

Thank you, I will look into the other two!

@josevalim josevalim merged commit bdc0d39 into elixir-lang:master Jan 7, 2017
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

vladdu pushed a commit to vladdu/elixir-lang.github.com that referenced this pull request Jan 26, 2021
Mix 1.4 introduced automatic inference of required applications from
dependencies list. Now Mix creates `:extra_applications` instead of
`:applications` by default in application configuration in `mix.exs`.
This commit updates the example `mix.exs` configurations in the guide to
reflect that change.

Signed-off-by: Bonghyun Kim <bonghyun.d.kim@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants