From 43c53fdeddbf00e5a98308edf4d74edf4437b991 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Sat, 20 Dec 2025 10:53:15 +0000 Subject: [PATCH] prisma_6: drop `prisma init` in test which now requires internet access Later versions of Prisma 6 seem to require internet access on the first run of `prisma init` to fetch updates to the subcommand. This fails in the test environment, but since we are already sketching out the test schema structure manually, we can drop that in favour of just creating the prisma/ directory. --- pkgs/by-name/pr/prisma_6/test-cli.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pr/prisma_6/test-cli.nix b/pkgs/by-name/pr/prisma_6/test-cli.nix index 72f0f22af251..3c6198294935 100644 --- a/pkgs/by-name/pr/prisma_6/test-cli.nix +++ b/pkgs/by-name/pr/prisma_6/test-cli.nix @@ -4,6 +4,7 @@ prisma_6, prisma-engines_6, sqlite-interactive, + openssl, }: let @@ -15,6 +16,7 @@ runCommand "prisma-cli-tests" nativeBuildInputs = [ prisma_6 sqlite-interactive + openssl ]; meta.timeout = 60; } @@ -30,8 +32,9 @@ runCommand "prisma-cli-tests" # Ensure CLI runs prisma --help > /dev/null - # Init a new project - prisma init > /dev/null + # Init a new project without prisma init, which needs + # network access + mkdir prisma # Create a simple data model cat << EOF > prisma/schema.prisma