File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ defmodule Mix.Project do
282
282
app = config [ :app ] ->
283
283
Path . join ( [ build_path ( config ) , "lib" , Atom . to_string ( app ) ] )
284
284
config [ :apps_path ] ->
285
- Mix . raise "Trying to access app_path for an umbrella project but umbrellas have no app"
285
+ raise "Trying to access app_path for an umbrella project but umbrellas have no app"
286
286
true ->
287
287
Mix . raise "Cannot access build without an application name, " <>
288
288
"please ensure you are in a directory with a mix.exs file and it defines " <>
@@ -314,7 +314,9 @@ defmodule Mix.Project do
314
314
"""
315
315
def compile ( args , config \\ config ( ) ) do
316
316
if config [ :build_embedded ] do
317
- if not File . exists? ( compile_path ( config ) ) do
317
+ path = if umbrella? ( config ) , do: build_path ( config ) , else: compile_path ( config )
318
+
319
+ unless File . exists? ( path ) do
318
320
Mix . raise "Cannot execute task because the project was not yet compiled. " <>
319
321
"When build_embedded is set to true, \" MIX_ENV=#{ Mix . env } mix compile\" " <>
320
322
"must be explicitly executed"
Original file line number Diff line number Diff line change 1
1
defmodule Mix.Tasks.App.Start do
2
2
use Mix.Task
3
3
4
+ # Do not mark this task as recursive as it is
5
+ # responsible for loading consolidated protocols.
4
6
@ shortdoc "Starts all registered apps"
5
7
6
8
@ moduledoc """
You can’t perform that action at this time.
0 commit comments