Skip to content

Commit f1ab303

Browse files
committed
Warn when using override with in_umbrella
Closes #12203.
1 parent 80f24b2 commit f1ab303

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/mix/lib/mix/scm/path.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ defmodule Mix.SCM.Path do
2424
Keyword.put(opts, :dest, Path.expand(raw))
2525

2626
opts[:in_umbrella] ->
27+
if opts[:override] do
28+
Mix.shell().error("""
29+
warning: in-umbrella application #{inspect(app)} has the flag :override \
30+
set to true, but the flag has no effect when running from the umbrella root
31+
""")
32+
end
33+
2734
path = "../#{app}"
2835

2936
opts

0 commit comments

Comments
 (0)