Skip to content

Commit

Permalink
fix: handle existing deps when they are not local properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jun 1, 2024
1 parent f1f6fa6 commit aa0c6fd
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
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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.