-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Include schema by relative path. #429
Comments
From the docs:
Migrations require using an absolute path, so for consistency I've made the schema do the same. |
Well in migrations you can still be changed by the program. The Rust source always assume relative path so hardcoding fixed paths breaks rust tooling. No crate with prisma can be distributed at all. |
Migrations are embedded into the binary at build-time, not sure I get your point
I'll gladly accept a PR switching to relative paths for schema + migrations but I probably won't be the one to write it
Haven't seen this use case before, I work in monorepos and workspaces - can you generate the client in a build script for whoever consumes the package? |
I develop both on a Mac and and my linux computer.
On my linux computer I get the following error:
I had to delete
prisma.rs
and make an emptyprisma.rs
to be able to run prisma generateUnless relative paths are used the generated
prisma.rs
file is machine dependant and user dependant which is not usable with CI.The text was updated successfully, but these errors were encountered: