Ash Framework: adding authentication strategy hangs? (p109)

Adding an authentication strategy, after successfully adding ash_authentication (and successfully recompiling picosat), the generator seems to hang while running codeine for AshPostgres.DataLayer, if “y” is selected when prompted to overwrite extensions.json

$ mix ash_authentication.add_strategy password
....
Generated tunez app
Getting extensions in current project...
Running codegen for AshPostgres.DataLayer...
* creating priv/resource_snapshots/repo/extensions.json
priv/resource_snapshots/repo/extensions.json already exists, overwrite? [Yn] Y

Selecting “N” here doesn’t appear to make a difference.

Removing this file before running the generator seems to resolve the issue, but obviously probably not the correct thing to do.

It seems the generator is only adding “cutest” to the list of installed extensions. Diff of the previous state to the end state, after removing extensions.json below:

$ git diff priv/resource_snapshots/repo/extensions.json
diff --git a/priv/resource_snapshots/repo/extensions.json b/priv/resource_snapshots/repo/extensions.json
index 5a8eacd..2c35bbc 100644
--- a/priv/resource_snapshots/repo/extensions.json
+++ b/priv/resource_snapshots/repo/extensions.json
@@ -2,6 +2,7 @@
   "ash_functions_version": 5,
   "installed": [
     "ash-functions",
-    "pg_trgm"
+    "pg_trgm",
+    "citext"
   ]
 }

Looks like could be a bug in the add_strategy generator? I updated ash_authentication to 4.9 and observed the same issue.

Versions:

Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.18.4 (compiled with Erlang/OTP 27)