-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binaryTargets
not respected when PRISMA_QUERY_ENGINE_LIBRARY
set
#21056
Comments
This is most probably happening as we currently treat As a possible workaround: |
It seems like every command either wants to download the nixos binary, and fails because it could not be found on the mirror, or doesn't download anything at all. I'm not seeing anything that would only download other platforms. |
Is there a simple way to run a NixOS setup to reproduce this? (I am on Windows, but have access to Linux machines in the Cloud of course) |
I created a repository with a simple ts/prisma example, and a git clone git@github.com:jpentland/nix-ts-prisma-example.git -b engines-example Note that by entering the nix-shell, the prisma environment variables get set. When I tested this on Archlinux, I noticed that removing the environment variables results in the platform being detected as If you want to replicate it exactly, you will need access to a nixos system. Any basic x86_64 setup would do, and should work without root access, since the nix shell will pull in all dependencies, and isolate the example from the system configuration. |
I assume instructions are missing a step how to compile or provide this file somehow?
That is also what I am seeing on Gitpod.io, which has Nix already installed. |
I still have an update: I think you are getting the error message without the env var set, because you include |
There should be an easy way to run it in qemu. I will look into that later when I have more time. For now I can show the output when I remove "native" on my nixos system:
|
Unexpected to me. Definitely something to figure out. |
Yes |
binaryTargets
not respected when PRISMA_QUERY_ENGINE_LIBRARY
set
Bug description
Since I am running on nixos, I must set PRISMA_QUERY_ENGINE_LIBRARY to point to the query engine library inside of the nix store.
However, I would also like to have other query engines downloaded, in order to package the tool for offline use on other platforms.
How to reproduce
Expected behavior
Would expect that the binaryTargets are downloaded: "debian-openssl-1.1.x", "debian-openssl-3.0.x", "darwin", "linux-musl", "windows"
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: