bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.97k stars 399 forks source link

release build fails: during .boot generation #754

Closed lulu-2021 closed 2 weeks ago

lulu-2021 commented 3 weeks ago

I have a large umbrella app that has 10 Elixir apps. One recently upgraded Phoenix app, and now that we have added a new Phoenix App where we are building a Liveview Admin interface - the Distillery release build fails with this strange error:

"Release failed, during .boot generation: Undefined applications: [floki]"

Liveview depends on floki. I have tried adding :floki to :extra_applications - but that makes no difference. Just out of interest I tried using the standard Phoenix release (mix task) and it fails with the :floki issue as well.

I couldn't find anything relating to this issue on either this project or on Floki or Liveview on github... any help will be much appreciated

lulu-2021 commented 2 weeks ago

I worked out that by adding floki (without :test) the problem goes away - which raises the issue that liveview must be using floki in prod code, even though the Phx.new defaults add the library as :test....