Skip to content

Commit

Permalink
Precreate the compilation path to avoid mtime races
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 29, 2024
1 parent 13d3cc0 commit 44107f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mix/test/mix/tasks/compile.app_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ defmodule Mix.Tasks.Compile.AppTest do
test "generates .app file when changes happen" do
in_fixture("no_mixfile", fn ->
Mix.Project.push(MixTest.Case.Sample)
# Pre-create the compilation path to avoid mtime races
File.mkdir_p(Mix.Project.compile_path())

Mix.Tasks.Compile.Elixir.run([])
assert Mix.Tasks.Compile.App.run([]) == {:ok, []}
Expand Down

0 comments on commit 44107f1

Please sign in to comment.