Skip to content

Commit

Permalink
File.rm_rf!/1 seems to be async
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Nov 12, 2022
1 parent 9d48da9 commit 4814827
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ defmodule Mix.Tasks.Compile.EvisionPrecompiled do
end

if File.exists?(generated_elixir_dir) do
File.rm_rf!(generated_elixir_dir)
# todo: async rm_rf?
# File.rm_rf!(generated_elixir_dir)
end

Logger.info("Copying priv directory: #{cached_priv_dir} => #{app_priv}")
Expand All @@ -618,6 +619,8 @@ defmodule Mix.Tasks.Compile.EvisionPrecompiled do
Logger.error(msg)
raise RuntimeError, msg
end

Process.sleep(1000)
end

def unarchive!(filepath, to_directory) do
Expand Down

0 comments on commit 4814827

Please sign in to comment.