Skip to content

Commit d174139

Browse files
committed
chore: update installer for latest igniter changes
1 parent fdb077e commit d174139

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

lib/mix/tasks/ash_postgres.install.ex

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ if Code.ensure_loaded?(Igniter) do
200200
) do
201201
{:ok, _zipper} ->
202202
zipper
203-
|> Igniter.Project.Config.modify_configuration_code(
203+
|> modify_configuration_code(
204204
[repo, :url],
205205
otp_app,
206206
{:database_url, [], nil}
207207
)
208-
|> Igniter.Project.Config.modify_configuration_code(
208+
|> modify_configuration_code(
209209
[repo, :pool_size],
210210
otp_app,
211211
Sourceror.parse_string!("""
@@ -252,6 +252,13 @@ if Code.ensure_loaded?(Igniter) do
252252
end
253253
end
254254

255+
defp modify_configuration_code(zipper, path, otp_app, code) do
256+
case Igniter.Project.Config.modify_config_code(zipper, path, otp_app, code) do
257+
{:ok, zipper} -> zipper
258+
_ -> zipper
259+
end
260+
end
261+
255262
defp configure_dev(igniter, otp_app, repo) do
256263
if Igniter.Project.Config.configures_key?(igniter, "dev.exs", otp_app, [repo]) do
257264
igniter

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ defmodule AshPostgres.MixProject do
168168
[
169169
{:ash, ash_version("~> 3.5 and >= 3.5.13")},
170170
{:ash_sql, ash_sql_version("~> 0.2 and >= 0.2.72")},
171-
{:igniter, "~> 0.6", optional: true},
171+
{:igniter, "~> 0.6 and >= 0.6.14", optional: true},
172172
{:ecto_sql, "~> 3.13"},
173173
{:ecto, "~> 3.13"},
174174
{:jason, "~> 1.0"},

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"git_ops": {:hex, :git_ops, "2.8.0", "29ac9ab68bf9645973cb2752047b987e75cbd3d9761489c615e3ba80018fa885", [:mix], [{:git_cli, "~> 0.2", [hex: :git_cli, repo: "hexpm", optional: false]}, {:igniter, ">= 0.5.27 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}, {:req, "~> 0.5", [hex: :req, repo: "hexpm", optional: false]}], "hexpm", "b535e4ad6b5d13e14c455e76f65825659081b5530b0827eb0232d18719530eec"},
2424
"glob_ex": {:hex, :glob_ex, "0.1.11", "cb50d3f1ef53f6ca04d6252c7fde09fd7a1cf63387714fe96f340a1349e62c93", [:mix], [], "hexpm", "342729363056e3145e61766b416769984c329e4378f1d558b63e341020525de4"},
2525
"hpax": {:hex, :hpax, "1.0.3", "ed67ef51ad4df91e75cc6a1494f851850c0bd98ebc0be6e81b026e765ee535aa", [:mix], [], "hexpm", "8eab6e1cfa8d5918c2ce4ba43588e894af35dbd8e91e6e55c817bca5847df34a"},
26-
"igniter": {:hex, :igniter, "0.6.12", "a8e20a67c2729dd0e03ccb06799efb23017fbdbed939ac6a88d8ddcc1a005bf7", [:mix], [{:glob_ex, "~> 0.1.7", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:owl, "~> 0.11", [hex: :owl, repo: "hexpm", optional: false]}, {:phx_new, "~> 1.7", [hex: :phx_new, repo: "hexpm", optional: true]}, {:req, "~> 0.5", [hex: :req, repo: "hexpm", optional: false]}, {:rewrite, ">= 1.1.1 and < 2.0.0-0", [hex: :rewrite, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.4", [hex: :sourceror, repo: "hexpm", optional: false]}, {:spitfire, ">= 0.1.3 and < 1.0.0-0", [hex: :spitfire, repo: "hexpm", optional: false]}], "hexpm", "4ba183c8fa299ac1207c078c3d055c635b418d6573006a2e92c131dfd1879a92"},
26+
"igniter": {:hex, :igniter, "0.6.14", "c7d1aa437bd87389a724ab8971ed4f4b645d844f55cb9dfa2d3933a8350f5d68", [:mix], [{:glob_ex, "~> 0.1.7", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:owl, "~> 0.11", [hex: :owl, repo: "hexpm", optional: false]}, {:phx_new, "~> 1.7", [hex: :phx_new, repo: "hexpm", optional: true]}, {:req, "~> 0.5", [hex: :req, repo: "hexpm", optional: false]}, {:rewrite, ">= 1.1.1 and < 2.0.0-0", [hex: :rewrite, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.4", [hex: :sourceror, repo: "hexpm", optional: false]}, {:spitfire, ">= 0.1.3 and < 1.0.0-0", [hex: :spitfire, repo: "hexpm", optional: false]}], "hexpm", "2d566654e3ee33351307053869235c51bed25fb2c0af491896fd91c3315ecb8c"},
2727
"iterex": {:hex, :iterex, "0.1.2", "58f9b9b9a22a55cbfc7b5234a9c9c63eaac26d276b3db80936c0e1c60355a5a6", [:mix], [], "hexpm", "2e103b8bcc81757a9af121f6dc0df312c9a17220f302b1193ef720460d03029d"},
2828
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
2929
"libgraph": {:hex, :libgraph, "0.16.0", "3936f3eca6ef826e08880230f806bfea13193e49bf153f93edcf0239d4fd1d07", [:mix], [], "hexpm", "41ca92240e8a4138c30a7e06466acc709b0cbb795c643e9e17174a178982d6bf"},

0 commit comments

Comments
 (0)