Closed brecht-derooms closed 1 year ago
Pretty sure this is fixed by this: https://github.com/Brendonovich/prisma-client-rust/pull/349
Confirmed, The problem was the tag, 0.6.8 seemed to be the last version to use so that's the one I upgraded to:
prisma-client-rust-cli = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.8", default-features = false, features = [ "postgresql" ] }
removing the tag and just using the latest code in the repo fixed it.
I've faced this issue, it seems version 0.6.10 is not support openssl >3.1. currently my openssl is 3.2. I solved by downgrade openssl to 3.0, it work
Problem & context
I did not have this problem before and managed to work successfully with prisma-rust a few months back. Today when I returned to it, running the CLI results in:
Prisma rust client versions
Regardless whether I use the current version or the version from a few months back (0.6.4). When I start a project from scratch and set it up using the simplest instructions (not a separate lib/crate) it's immediately reproducible. I've seen there are some similar problems reported with the node version but I couldn't figure out what is wrong.
Rust version
tried both 1.70.0 as 1.69.0
Attempted fixes
I tried to specify binaryTargets since it seems that it selects the wrong target based on this list: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#binarytargets-options
The binary target seems to be ignored by the rust cli though while
npx prisma generate
would result in:Other context
The node prisma CLI does work.
Linux version: DISTRIB_ID=EndeavourOS DISTRIB_RELEASE="rolling" DISTRIB_DESCRIPTION="EndeavourOS Linux" DISTRIB_CODENAME=rolling NAME=EndeavourOS PRETTY_NAME=EndeavourOS ID=endeavouros ID_LIKE=arch BUILD_ID=2022.08.28 ANSI_COLOR="38;2;23;147;209" HOME_URL='https://endeavouros.com' DOCUMENTATION_URL='https://discovery.endeavouros.com' SUPPORT_URL='https://forum.endeavouros.com' BUG_REPORT_URL='https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports' PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=endeavouros
Cause:
on my machine:
which seems to be how it's determined which version to download based on the source code.