With export DEBUG=*, Prisma client logs Engine, Client version.
These versions are correct
QUERY_ENGINE_BINARY_PATH env varThese versions are incorrect (incorrectly pointing to the default binary)
const prisma = new PrismaClient({
__internal: {
engine: {
cwd: process.cwd(),
binaryPath: path.join(process.cwd(), './binaries/query-engine'),
},
},
})
Steps to reproduce the behavior:
DEBUG=*The logged version should be of the binary being used.
So it appears that the engineVersion from the DEBUG output comes from the code generated client

(The client version in this screenshot is wrong and was already fixed)
The issue here is that the hash in the debug log is hardcoded so when the binary is different like when using an env var or with the constructor in the client it still outputs the hardcoded version.
Thanks a lot for reporting 馃檹
This issue is fixed in the latest dev version of @prisma/cli.
You can try it out with npm i -g @prisma/cli@dev.
In case it鈥檚 not fixed for you - please let us know and we鈥檒l reopen this issue!