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
Use :extra_applications instead of :applications in escript.build #5534
Use :extra_applications instead of :applications in escript.build #5534
Conversation
You need to get both and concatenate tchem together with ++. We can use
Keyword.get/3 with a default of an empty list.
…On Sun, Dec 4, 2016 at 21:50 Andrea Leopardi ***@***.***> wrote:
I wonder, could this veeery simple change be a solution for #5529
<#5529>? 🤔 :)
------------------------------
You can view, comment on, or merge this pull request online at:
#5534
Commit Summary
- Use :extra_applications instead of :applications in escript.build
File Changes
- *M* lib/mix/lib/mix/tasks/escript.build.ex
<https://github.com/elixir-lang/elixir/pull/5534/files#diff-0> (2)
Patch Links:
- https://github.com/elixir-lang/elixir/pull/5534.patch
- https://github.com/elixir-lang/elixir/pull/5534.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5534>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAlbvSbk-zLmcvlG44-UY0k1cS_Dftlks5rEyecgaJpZM4LDsUY>
.
|
We should probably change an existing escritp test to use
extra_applications.
|
@josevalim I implemented both suggestions. While changing the test related to this in particular: defmodule EscriptErlangWithDeps do
def project do
[app: :escripttesterlangwithdeps,
version: "0.0.1",
language: :erlang,
escript: [main_module: :escripttest],
deps: [{:ok, path: fixture_path("deps_status/deps/ok")}]]
end
def application do
[applications: []]
end
end I left
but I expected that putting Sorry for the convoluted wall of text, hope my questions are clear enough 😄 |
No because we change the escript generated based on the language configuration. Basically, you never add :elixir to |
I guess though you found a bug in that if someone depends on logger and not the parent project, |
@josevalim ok, got it. I will investigate and open another bug for that. Regarding this PR, do we need to change anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Please backport to v1.4!
Awesome, backported to v1.4 as well. |
I wonder, could this veeery simple change be a solution for #5529? 🤔 :)