File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 11
11
* [ Mix] Use absolute symbolic links on Windows for ` _build ` instead of copying
12
12
* [ Mix] Add ` Mix.compilers ` that returns all default compilers used by mix tasks
13
13
* [ Mix] Add ` mix archive `
14
+ * [ Mix] Issue warning and reset mtime for source files from the future
14
15
* [ String] Improve performance of ` String.split/1 `
15
16
* [ Typespec] Allow ` %Struct{} ` syntax to be used in typespecs
16
17
28
29
* [ Mix] Ensure Mix dependencies are not compiled every second time when ` mix deps.compile ` is invoked
29
30
* [ Mix] Fix a bug where ` Mix.shell.error/1 ` and friends choked when printing a map
30
31
* [ Mix] Ensure multiple ` @external_resource ` entries are read by Mix compilers
32
+ * [ Mix] Fix a bug where tasks for umbrella projects were not properly reenabled
31
33
* [ Stream] Fix bug when ` flat_map ` is used inside another ` flat_map ` with an Enumerable
32
34
* [ Typespec] Fix a bug where the ` list ` typespec was incorrectly rendered as ` [] `
33
35
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ defmodule Mix.Task do
204
204
task = to_string ( task )
205
205
module = get! ( task )
206
206
207
+ Mix.TasksServer . delete_task ( task , Mix.Project . get )
208
+
207
209
recur module , fn project ->
208
210
Mix.TasksServer . delete_task ( task , project )
209
211
end
Original file line number Diff line number Diff line change @@ -58,6 +58,19 @@ defmodule Mix.TaskTest do
58
58
assert Mix.Task . run ( "hello" ) == "Hello, World!"
59
59
end
60
60
61
+ test "reenable for umbrella" do
62
+ in_fixture "umbrella_dep/deps/umbrella" , fn ->
63
+ Mix.Project . in_project ( :umbrella , "." , fn _ ->
64
+ assert [ :ok , :ok ] = Mix.Task . run "clean"
65
+ assert :noop = Mix.Task . run "clean"
66
+
67
+ Mix.Task . reenable "clean"
68
+ assert [ :ok , :ok ] = Mix.Task . run "clean"
69
+ assert :noop = Mix.Task . run "clean"
70
+ end )
71
+ end
72
+ end
73
+
61
74
test :get! do
62
75
assert Mix.Task . get! ( "hello" ) == Mix.Tasks.Hello
63
76
You can’t perform that action at this time.
0 commit comments