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
The behavior was originally noticed in getsentry/sentry-elixir#451. It's related to some Sentry code that does some rather twisted things to store source code, but the behavior seems to be reproducible outside of that context.
When running compile in a list of mix do tasks, the application still recompiles even if compile is the final task in the list. Steps to reproduce:
This is by design. When you run a task, it is marked as ran, and it won't run again. That's because we don't want to run compile (or check the file system to see if we need to compile) every time you invoke the compile task, because often tasks are recursive. For example, take the alias setup in Phoenix apps. It will create the db, run migrations, etc. All of those require the code to be compiled. So we want to compile once and then the task is marked as ran until the end of that command.
Sorry for the title, not sure how to best describe this 馃槵
Environment
Erlang/OTP 23 [erts-11.1.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
Elixir 1.11.2 (compiled with Erlang/OTP 23)
Current behavior
The behavior was originally noticed in getsentry/sentry-elixir#451. It's related to some Sentry code that does some rather twisted things to store source code, but the behavior seems to be reproducible outside of that context.
When running
compile
in a list ofmix do
tasks, the application still recompiles even ifcompile
is the final task in the list. Steps to reproduce:Expected behavior
I would expect for there to be nothing left to recompile when running the final
mix compile
, but the Phoenix project still recompiles some files.This is a very unlikely case to hit in the normal course of things, but I wasn't sure if this was expected behavior.
The text was updated successfully, but these errors were encountered: