Skip to content

Commit

Permalink
improvement: raise when installing igniter as an archive
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 27, 2025
1 parent 6342bb9 commit 924c9ec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,18 @@ defmodule Igniter.MixProject do

defp aliases do
[
credo: "credo --strict"
credo: "credo --strict",
"archive.build": &raise_on_archive_build/1
]
end

@doc false
def install_version, do: @install_version

defp raise_on_archive_build(_) do
Mix.raise("""
You are trying to install "igniter" as an archive, which is not supported. \
You probably meant to install "igniter_new" instead.
""")
end
end

0 comments on commit 924c9ec

Please sign in to comment.