-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Mix release fails with logger application error #4265
Conversation
…lar application and as an included application.
Your change seems problematic when running "make dev" in ejabberd. What if you move to extra_applications only "logger", instead of all the apps? Something like this, does that work correctly for your user case? diff --git a/mix.exs b/mix.exs
index 9093fef9f..ac40e3b1e 100644
--- a/mix.exs
+++ b/mix.exs
@@ -47,7 +47,8 @@ defmodule Ejabberd.MixProject do
:fast_tls, :fast_xml, :fast_yaml, :jose,
:p1_utils, :stringprep, :syntax_tools, :yconf, :xmpp]
++ cond_apps(),
- included_applications: [:mnesia, :os_mon, :logger,
+ extra_applications: [:logger],
+ included_applications: [:mnesia, :os_mon,
:cache_tab, :eimp, :mqtree, :p1_acme,
:p1_oauth2, :pkix]
++ cond_included_apps()] |
To use extra_applications, i think we would need to remove from that apps that we specify in deps (as those will be added automatically) |
Just tried this and got a warning when I compiled it:
Running |
@slezakattack: Good news: I've pushed your commit directly in master, and followed the suggestion from @prefiks , and it works correctly now :-) |
Awesome, thank you so much. Looks much cleaner too 👍 |
When attempting a
mix release
on a new mix project, I get the following error:** (Mix) :logger is listed both as a regular application and as an included application
Repro steps:
mix new ejabberd_mix_release_issue
mix.exs
, add{:ejabberd, "~> 24.7"}
in the list of deps.mix deps.get
mix compile
mix release
Updating the
mix.exs
within ejabberd seems to fix the issue as I'm able to generate a release and the application is able to start up (provided there's anejabberd.cfg
file 🙂)