Skip to content
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

Environment Option to Disable DBML #48

Open
brunowego opened this issue Apr 27, 2023 · 2 comments
Open

Environment Option to Disable DBML #48

brunowego opened this issue Apr 27, 2023 · 2 comments

Comments

@brunowego
Copy link

brunowego commented Apr 27, 2023

Currently, I have a situation where I need disable the generator for DBML.

A option, like DISABLE_DBML will be very useful.

cross-env DISABLE_DBML=true prisma generate

Thanks!

@carloschida
Copy link

I support this. I just incurred into a permission problem on a GH action:

@acme/db:db-generate: > dotenv -e ../../.env -- "prisma" "generate"
@acme/db:db-generate: 
@acme/db:db-generate: Prisma schema loaded from prisma/schema.prisma
@acme/db:db-generate: Error: Generator at prisma-dbml-generator could not start:
@acme/db:db-generate: 
@acme/db:db-generate: /bin/sh: 1: prisma-dbml-generator: Permission denied
@acme/db:db-generate: 
@acme/db:db-generate:  ELIFECYCLE  Command failed with exit code 1.
@acme/db:db-generate:  ELIFECYCLE  Command failed with exit code 1.

Could a maintainer point me into the right direction to fix this (would submit a PR)?

@marcjulian
Copy link
Member

marcjulian commented May 25, 2023

Maybe this would also be a feature which could be supported by Prisma as this might be a valid use case also for other Prisma generators.

Here are thus feature request from prisma and you could express your interest for this feature: prisma/prisma#5413, prisma/prisma#12806

Until it is supported we could add an option to disable it, but that requires the dependency to be installed in that environment. Do you want to provide a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants