Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Mix.Dep.loaded/1 (removed in Elixir 1.9) with Mix.Dep.load_on_environment/1 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/mix/tasks/archive/build.deps.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule Mix.Tasks.Archive.Build.Deps do
skip = Helpers.skipped_apps(opts)

## Build delendencies archives
Mix.Dep.loaded(env: Mix.env)
Mix.Dep.load_on_environment([])
|> Enum.filter(fn(%Mix.Dep{app: app}) -> not Enum.member?(skip, app) end)
|> Enum.map(fn(%Mix.Dep{app: app, status: status}) ->
version = case status do
Expand All @@ -81,4 +81,4 @@ defmodule Mix.Tasks.Archive.Build.Deps do
{app_dir, archive_path}
end)
end
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule MixTaskArchiveDeps.Mixfile do
def project do
[app: :mix_task_archive_deps,
version: "0.4.0",
elixir: "~> 1.4",
elixir: "~> 1.7",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "Mix task to create archives for a project dependencies and elixir itself",
Expand Down