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.
This commit is contained in:
Jon Seager
2025-12-20 10:53:15 +00:00
parent 688c34105c
commit 43c53fdedd
+5 -2
View File
@@ -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