summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2022-10-10 16:17:57 +0200
committerJosé Valim <jose.valim@dashbit.co>2022-10-10 16:19:39 +0200
commitbc936f77c7bbe2dc03ccd7293e54e832a2b3b2f4 (patch)
tree224457ac6d376c3dc4a5032d47a91e1a81cb7fcd
parentee602cd33e2a78baccdb68defffd19fb8e20e84c (diff)
downloadelixir-bc936f77c7bbe2dc03ccd7293e54e832a2b3b2f4.tar.gz
Add note about after_compiler, see #12159
-rw-r--r--lib/mix/lib/mix/task.compiler.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mix/lib/mix/task.compiler.ex b/lib/mix/lib/mix/task.compiler.ex
index 90d209df6..ed4ed6125 100644
--- a/lib/mix/lib/mix/task.compiler.ex
+++ b/lib/mix/lib/mix/task.compiler.ex
@@ -106,6 +106,10 @@ defmodule Mix.Task.Compiler do
it receives a tuple with current status and the list
of diagnostic. It must return the updated status and
diagnostics.
+
+ If the given compiler does not run (for instance,
+ because an earlier compiler in the stack has aborted),
+ the callback will not be executed.
"""
@doc since: "1.10.0"
@spec after_compiler(atom, ({status, [Diagnostic.t()]} -> {status, [Diagnostic.t()]})) :: :ok