Skip to content

Commit e621b58

Browse files
committed
Load dependencies before deps.check compiles
Signed-off-by: Eric Meadows-Jönsson <[email protected]>
1 parent 68e282c commit e621b58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mix/lib/mix/tasks/deps.compile.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ defmodule Mix.Tasks.Deps.Compile do
2626

2727
import Mix.Dep, only: [loaded: 1, available?: 1, loaded_by_name: 2,
2828
format_dep: 1, make?: 1, mix?: 1, rebar?: 1]
29-
29+
3030
@spec run(OptionParser.argv) :: :ok
3131
def run(args) do
3232
Mix.Project.get!
33-
Mix.Task.run "deps.loadpaths"
3433

3534
case OptionParser.parse(args) do
3635
{_, [], _} ->
@@ -45,6 +44,8 @@ defmodule Mix.Tasks.Deps.Compile do
4544
shell = Mix.shell
4645
config = Mix.Project.deps_config
4746

47+
Mix.Task.run "deps.loadpaths"
48+
4849
compiled =
4950
Enum.map(deps, fn %Mix.Dep{app: app, status: status, opts: opts, scm: scm} = dep ->
5051
check_unavailable!(app, status)

0 commit comments

Comments
 (0)