Skip to content

Commit

Permalink
Warn if :optional is used in combination with :in_umbrella, closes el…
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Mar 7, 2024
1 parent 2c44862 commit 713bac0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/mix/lib/mix/scm/path.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ defmodule Mix.SCM.Path do
""")
end

if opts[:optional] do
Mix.shell().error("""
warning: in-umbrella application #{inspect(app)} has the flag :optional \
set to true, but the flag is not supported for umbrella dependencies
""")
end

path = "../#{app}"

opts
Expand Down

0 comments on commit 713bac0

Please sign in to comment.