Skip to content

Commit aef7e4e

Browse files
Fix compilation path caching (#13823)
1 parent 5137c33 commit aef7e4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mix/lib/mix/tasks/compile.all.ex

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ defmodule Mix.Tasks.Compile.All do
4343
Code.delete_paths(current_paths -- loaded_paths)
4444
end
4545

46+
Code.prepend_paths(loaded_paths -- current_paths, cache: true)
47+
4648
# Add the current compilation path. compile.elixir and compile.erlang
4749
# will also add this path, but only if they run, so we always add it
4850
# here too. Furthermore, we don't cache it as we may still write to it.
4951
compile_path = to_charlist(Mix.Project.compile_path())
50-
Code.prepend_paths([compile_path | loaded_paths -- current_paths], cache: true)
52+
Code.prepend_path(compile_path)
5153

5254
result =
5355
if "--no-compile" in args do

0 commit comments

Comments
 (0)