You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.
I'm not quite sure what the cause of this is -- some dependency checking for files in the wrong place, perhaps? But it's easy to reproduce:
~/d/w/t/exrm_test ❯❯❯ mix new exrm_test
~/d/w/t/exrm_test ❯❯❯ cd exrm_test
<add exrm as a dependency to mix.exs>~/d/w/t/exrm_test ❯❯❯ MIX_ENV=prod mix do deps.clean --all, deps.get, deps.compile
~/d/w/t/exrm_test ❯❯❯ MIX_ENV=prod mix release.clean --implode --no-confirm
Compiled lib/exrm_test.ex
Generated exrm_test app
Consolidated Access
Consolidated Collectable
Consolidated Enumerable
Consolidated Inspect
Consolidated List.Chars
Consolidated Range.Iterator
Consolidated String.Chars
Consolidated protocols written to _build/prod/consolidated
==> Removing release files for exrm_test-0.0.1...
** (UndefinedFunctionError) undefined function: ReleaseManager.Plugin.load_all/0 (module ReleaseManager.Plugin is not available)
ReleaseManager.Plugin.load_all()
lib/mix/tasks/release.clean.ex:91: Mix.Tasks.Release.Clean.execute_after_hooks/1
lib/mix/tasks/release.clean.ex:41: Mix.Tasks.Release.Clean.do_run/1
(mix) lib/mix/cli.ex:55: Mix.CLI.run_task/2
(elixir) lib/code.ex:307: Code.require_file/2
I am only including the output from the last command -- the others are exactly as you would expect.
One more interesting note. Something critical does happen when the mix release.clean --implode --no-confirm is run, because if you run it a second time it compiles the dependencies first enabling the command to complete normally:
Yes, that's right. I tried to reproduce it without prefixing the commands with MIX_ENV=prod, and it didn't happen. My guess is that it has something to do with some compiled or generated files that it finds in prod, but some others that were never compiled/generated outside of prod that it's not looking for in the environment-specific location.
Or it could have nothing to do with that whatsoever, I'm really guessing out of the blue -- feel free to ignore me!
Thanks, BTW, for the very quick response -- sorry for the slow answer, I only just saw the notification now.
I'm not quite sure what the cause of this is -- some dependency checking for files in the wrong place, perhaps? But it's easy to reproduce:
I am only including the output from the last command -- the others are exactly as you would expect.
One more interesting note. Something critical does happen when the
mix release.clean --implode --no-confirm
is run, because if you run it a second time it compiles the dependencies first enabling the command to complete normally:The text was updated successfully, but these errors were encountered: