From 14da869c439c151010426987a5bc03d94e15e238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Thu, 2 Jan 2025 14:56:26 +0700 Subject: [PATCH] Print compilation lock waiting message to stderr --- lib/mix/lib/mix/project.ex | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/mix/lib/mix/project.ex b/lib/mix/lib/mix/project.ex index 6f946b7e27d..157badc96b2 100644 --- a/lib/mix/lib/mix/project.ex +++ b/lib/mix/lib/mix/project.ex @@ -917,7 +917,10 @@ defmodule Mix.Project do build_path = build_path(config) on_taken = fn os_pid -> - Mix.shell().info("Waiting for lock on the build directory (held by process #{os_pid})") + Mix.shell().error([ + IO.ANSI.reset(), + "Waiting for lock on the build directory (held by process #{os_pid})" + ]) end Mix.Sync.Lock.with_lock(build_path, fun, on_taken: on_taken) @@ -931,7 +934,10 @@ defmodule Mix.Project do deps_path = deps_path(config) on_taken = fn os_pid -> - Mix.shell().info("Waiting for lock on the deps directory (held by process #{os_pid})") + Mix.shell().error([ + IO.ANSI.reset(), + "Waiting for lock on the deps directory (held by process #{os_pid})" + ]) end Mix.Sync.Lock.with_lock(deps_path, fun, on_taken: on_taken)