From e609758a128d0732ade2eab061081823e6aa1d8f Mon Sep 17 00:00:00 2001 From: Daniil Fedotov Date: Tue, 31 Jan 2017 15:16:43 +0000 Subject: [PATCH] Run loadpaths task before listing elixir app dependencies --- lib/mix/tasks/archive/build.all.ex | 1 + lib/mix/tasks/archive/build.all.list.ex | 2 ++ lib/mix/tasks/archive/build.elixir.ex | 1 + 3 files changed, 4 insertions(+) diff --git a/lib/mix/tasks/archive/build.all.ex b/lib/mix/tasks/archive/build.all.ex index b98195b..8853e2f 100644 --- a/lib/mix/tasks/archive/build.all.ex +++ b/lib/mix/tasks/archive/build.all.ex @@ -55,6 +55,7 @@ defmodule Mix.Tasks.Archive.Build.All do @spec run(OptionParser.argv) :: :ok def run(argv) do + Mix.Tasks.Loadpaths.run([]) {opts, _} = OptionParser.parse!(argv, aliases: @aliases, strict: @switches) destination = Mix.Archive.Build.Helpers.destination(opts) Mix.Tasks.Archive.Build.Deps.build_archives(opts) diff --git a/lib/mix/tasks/archive/build.all.list.ex b/lib/mix/tasks/archive/build.all.list.ex index d51a2e5..2d77dcf 100644 --- a/lib/mix/tasks/archive/build.all.list.ex +++ b/lib/mix/tasks/archive/build.all.list.ex @@ -41,6 +41,7 @@ defmodule Mix.Tasks.Archive.Build.All.List do @spec run(OptionParser.argv) :: :ok def run(argv) do + Mix.Tasks.Loadpaths.run([]) {opts, _} = OptionParser.parse!(argv, aliases: @aliases, strict: @switches) destination = Mix.Archive.Build.Helpers.destination(opts) elixir = opts[:elixir] || false @@ -50,6 +51,7 @@ defmodule Mix.Tasks.Archive.Build.All.List do archive_path = Path.join([destination, archive_name]) deps_archives = Mix.Tasks.Archive.Build.Deps.list_archives(opts) + elixir_archives = if elixir do Mix.Tasks.Archive.Build.Elixir.list_archives(opts) else diff --git a/lib/mix/tasks/archive/build.elixir.ex b/lib/mix/tasks/archive/build.elixir.ex index 0587876..a4522f3 100644 --- a/lib/mix/tasks/archive/build.elixir.ex +++ b/lib/mix/tasks/archive/build.elixir.ex @@ -52,6 +52,7 @@ defmodule Mix.Tasks.Archive.Build.Elixir do @spec run(OptionParser.argv) :: :ok def run(argv) do + Mix.Tasks.Loadpaths.run([]) {opts, _} = OptionParser.parse!(argv, aliases: @aliases, strict: @switches) build_archives(opts) end