Skip to content

Commit 6a6678f

Browse files
committed
Do not attempt to touch deleted files
1 parent ec87c6b commit 6a6678f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mix/lib/mix/compilers/elixir.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,9 @@ defmodule Mix.Compilers.Elixir do
432432
has_any_key?(modules_to_recompile, modules) ->
433433
# Mark the source as changed so the combination of a timestamp
434434
# plus removed beam files (which are removed by update_stale_entries)
435-
# causes it to be recompiled
436-
File.touch!(source, timestamp + 1)
435+
# causes it to be recompiled. Note we don't raise use touch! because
436+
# in case of checkpoints the file may have been removed.
437+
File.touch(source, timestamp + 1)
437438
[source]
438439

439440
size != last_size or

0 commit comments

Comments
 (0)