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

binaryTargets with native regression #750

Closed
divyenduz opened this issue Oct 14, 2019 · 1 comment
Closed

binaryTargets with native regression #750

divyenduz opened this issue Oct 14, 2019 · 1 comment
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. kind/regression A reported bug in functionality that used to work before.

Comments

@divyenduz
Copy link
Contributor

Prisma generate for the following config fails with a 404.

generator photon {
  provider = "photonjs"
  binaryTargets = ["native"]
}

On catalina, the error is different but the link from the "Downloading" message is still a 404.

divyendusingh [prisma2-native]$ prisma2 generate
  getos { platform: 'darwin', libssl: undefined } +0ms
  getos { platform: 'darwin', libssl: undefined } +26ms
  getos { platform: 'darwin', libssl: undefined } +9ms
  getos { platform: 'darwin', libssl: undefined } +399ms
  download Downloading https://s3-eu-west-1.amazonaws.com/prisma-native/master/188a379c9b8c6650e5812f9bdb7407d7b197692f/native/prisma.gz to /Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/query-engine-native +0ms
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:125:11)
    at Object.join (path.js:1147:7)
    at Object.getCacheDir (/Users/divyendusingh/.nvm/versions/node/v10.16.3/lib/node_modules/prisma2/build/index.js:396877:37)
@divyenduz divyenduz added bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. kind/regression A reported bug in functionality that used to work before. labels Oct 14, 2019
@timsuchanek
Copy link
Contributor

Fixed in latest alpha. We'll shortly release a patch for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. kind/regression A reported bug in functionality that used to work before.
Projects
None yet
Development

No branches or pull requests

2 participants