Ellocsys
It seems that the :optional flag is broken for umbrella dependencies in Elixir 1.15. For example, there’s an umbrella project https://github.com/Ellocsys/optional_deps with a dependency graph like this:
app_3
└── app_2
└── app_1 (optional)
When building a release with the command mix release app_3, the optional dependency app_1 will be included in the release with a launch type of :permanent. However, in version 1.14, the same optional dependency would be added to the release with a launch type of :load, which is consistent with the documentation:
https://hexdocs.pm/mix/1.15.7/Mix.Tasks.Deps.html#module-dependency-definition-options
“Optional dependencies will not be started by the application.”
Can you please advise if this is a bug or if managing the startup of optional dependencies should be done differently now?
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #blog-post
- #ai
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 1- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Ellocsys
According to Optional umbrella deps starts in mix release · Issue #13399 · elixir-lang/elixir · GitHub .
In this configuration, the optional flag will no longer work.
In any case, I was able to solve my problem with such a release config