From 44107f1010229f58d899177e34eb04357a075ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 29 Nov 2024 13:42:13 +0100 Subject: [PATCH] Precreate the compilation path to avoid mtime races --- lib/mix/test/mix/tasks/compile.app_test.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mix/test/mix/tasks/compile.app_test.exs b/lib/mix/test/mix/tasks/compile.app_test.exs index 3674bfcfb2..5390925460 100644 --- a/lib/mix/test/mix/tasks/compile.app_test.exs +++ b/lib/mix/test/mix/tasks/compile.app_test.exs @@ -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, []}