Skip to content

Commit

Permalink
Run loadpaths task before listing elixir app dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Fedotov committed Jan 31, 2017
1 parent 47cadb2 commit e609758
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/mix/tasks/archive/build.all.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions lib/mix/tasks/archive/build.all.list.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/mix/tasks/archive/build.elixir.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e609758

Please sign in to comment.