Skip to content

Commit 6a0d69b

Browse files
committed
fix: account for access needed by macos
1 parent 3b5096f commit 6a0d69b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nix/checks.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@
171171
#First we need to create a generic pg cluster for pgtap tests and run those
172172
export GRN_PLUGINS_DIR=${pkgs.supabase-groonga}/lib/groonga/plugins
173173
PGTAP_CLUSTER=$(mktemp -d)
174-
initdb --locale=C --username=supabase_admin -D "$PGTAP_CLUSTER"
174+
175+
# Use --allow-group-access to allow initdb to run as root (needed on macOS)
176+
initdb --locale=C --username=supabase_admin --allow-group-access -D "$PGTAP_CLUSTER"
175177
substitute ${./tests/postgresql.conf.in} "$PGTAP_CLUSTER"/postgresql.conf \
176178
--subst-var-by PGSODIUM_GETKEY_SCRIPT "${getkey-script}/bin/pgsodium-getkey"
177179
echo "listen_addresses = '*'" >> "$PGTAP_CLUSTER"/postgresql.conf

0 commit comments

Comments
 (0)