question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

inconsistency between `PRISMA_CLI_BINARY_TARGETS` and `binaryTargets`

See original GitHub issue

Bug description

native is not allowed in PRISMA_CLI_BINARY_TARGETS env (it’s a valid value in binaryTargets)

How to reproduce

PRISMA_CLI_BINARY_TARGETS=native,linux-musl yarn prisma generate

it will shows:

Error: Unknown binaryTarget native and no custom binaries were provided

Expected behavior

should works like binaryTargets?

Environment & setup

  • OS: Mac OS
  • Database: MySQL
  • Node.js version: 14.16.0
  • Prisma version: 2.21.2 (e421996c87d5f3c8f7eeadd502d4ad402c89464d)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hehex9commented, Apr 30, 2021

Thanks for the quick response.

tried the BINARY_TARGETS approach and it works like a charm. I ever thought the PRISMA_CLI_BINARY_TARGETS was the implicit way to do the same here.

And i just noticed that a single linux-musl in binaryTargets is enough to run prisma generate on ubuntu (just a Warning), because prisma will always downloading the native query engine ? Do I understand correctly?

Thanks again.

0reactions
hehex9commented, May 27, 2021

sure 👉 #7295

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found