Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/install.ex
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ defmodule Igniter.Install do

igniter =
Enum.reduce(install_list, igniter, fn install, igniter ->
if Mix.Project.config()[:deps][install][:path] do
if local_dep?(install) do
Mix.shell().info(
"Not looking up dependency for #{install}, because a local dependency is detected"
)
@@ -161,4 +161,9 @@ defmodule Igniter.Install do
|> String.split(",")
|> Enum.map(&String.to_atom/1)
end

defp local_dep?(install) do
config = Mix.Project.config()[:deps][install]
Keyword.keyword?(config) && config[:path]
end
end

0 comments on commit aa0c6fd

Please sign in to comment.