Skip to content

Commit f088fc9

Browse files
jonatankloskojosevalim
authored andcommitted
Print compilation lock waiting message to stderr (#14138)
1 parent dddb8f7 commit f088fc9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/mix/lib/mix/project.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,10 @@ defmodule Mix.Project do
917917
build_path = build_path(config)
918918

919919
on_taken = fn os_pid ->
920-
Mix.shell().info("Waiting for lock on the build directory (held by process #{os_pid})")
920+
Mix.shell().error([
921+
IO.ANSI.reset(),
922+
"Waiting for lock on the build directory (held by process #{os_pid})"
923+
])
921924
end
922925

923926
Mix.Sync.Lock.with_lock(build_path, fun, on_taken: on_taken)
@@ -931,7 +934,10 @@ defmodule Mix.Project do
931934
deps_path = deps_path(config)
932935

933936
on_taken = fn os_pid ->
934-
Mix.shell().info("Waiting for lock on the deps directory (held by process #{os_pid})")
937+
Mix.shell().error([
938+
IO.ANSI.reset(),
939+
"Waiting for lock on the deps directory (held by process #{os_pid})"
940+
])
935941
end
936942

937943
Mix.Sync.Lock.with_lock(deps_path, fun, on_taken: on_taken)

0 commit comments

Comments
 (0)