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

fix(crwa): pin Node.js version in .nvmrc #9614

Merged
merged 2 commits into from
Dec 1, 2023
Merged

fix(crwa): pin Node.js version in .nvmrc #9614

merged 2 commits into from
Dec 1, 2023

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Dec 1, 2023

@Tobbe and I reproduced Netlify deploys failing on Node.js with the following Prisma error (only during run, not build, curiously):

Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "rhel-openssl-3.0.x"

Netlify was deploying with Node.js 20, even if we set the NODE_VERSION env var to 18 in Netlify's deploy settings. It seemed like the .nvmrc file (which specified any lts version: lts/*) was taking precedence over the NODE_VERSION env var.

This PR pins the Node.js lts version to 18 in the .nvmrc. We're not sure if we even need to ship with this file but this seemed like the safer change for now.

Update: @Tobbe and I tried removing the .nvmrc file in a test deploy. Netlify defaulted to Node.js 16 which also isn't what we want, so it should stay.

@jtoar jtoar added the release:fix This PR is a fix label Dec 1, 2023
@jtoar jtoar added this to the next-release-patch milestone Dec 1, 2023
@jtoar jtoar requested a review from Tobbe December 1, 2023 22:41
@jtoar jtoar enabled auto-merge (squash) December 1, 2023 22:58
@jtoar jtoar merged commit b3ce961 into main Dec 1, 2023
32 checks passed
@jtoar jtoar deleted the ds-crwa/fix-nvmrc branch December 1, 2023 23:04
jtoar added a commit that referenced this pull request Dec 2, 2023
@Tobbe and I reproduced Netlify deploys failing on Node.js with the
following Prisma error (only during run, not build, curiously):

```
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "rhel-openssl-3.0.x"
```

Netlify was deploying with Node.js 20, even if we set the `NODE_VERSION`
env var to `18` in Netlify's deploy settings. It seemed like the
`.nvmrc` file (which specified any lts version: `lts/*`) was taking
precedence over the NODE_VERSION env var.

This PR pins the Node.js lts version to 18 in the .nvmrc. We're not sure
if we even need to ship with this file but this seemed like the safer
change for now.

Update: @Tobbe and I tried removing the `.nvmrc` file in a test deploy.
Netlify defaulted to Node.js 16 which also isn't what we want, so it
should stay.
@jtoar jtoar modified the milestones: next-release-patch, v6.4.2 Dec 2, 2023
jtoar added a commit that referenced this pull request Dec 2, 2023
@Tobbe and I reproduced Netlify deploys failing on Node.js with the
following Prisma error (only during run, not build, curiously):

```
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "rhel-openssl-3.0.x"
```

Netlify was deploying with Node.js 20, even if we set the `NODE_VERSION`
env var to `18` in Netlify's deploy settings. It seemed like the
`.nvmrc` file (which specified any lts version: `lts/*`) was taking
precedence over the NODE_VERSION env var.

This PR pins the Node.js lts version to 18 in the .nvmrc. We're not sure
if we even need to ship with this file but this seemed like the safer
change for now.

Update: @Tobbe and I tried removing the `.nvmrc` file in a test deploy.
Netlify defaulted to Node.js 16 which also isn't what we want, so it
should stay.
jtoar added a commit that referenced this pull request Dec 2, 2023
@Tobbe and I reproduced Netlify deploys failing on Node.js with the
following Prisma error (only during run, not build, curiously):

```
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "rhel-openssl-3.0.x"
```

Netlify was deploying with Node.js 20, even if we set the `NODE_VERSION`
env var to `18` in Netlify's deploy settings. It seemed like the
`.nvmrc` file (which specified any lts version: `lts/*`) was taking
precedence over the NODE_VERSION env var.

This PR pins the Node.js lts version to 18 in the .nvmrc. We're not sure
if we even need to ship with this file but this seemed like the safer
change for now.

Update: @Tobbe and I tried removing the `.nvmrc` file in a test deploy.
Netlify defaulted to Node.js 16 which also isn't what we want, so it
should stay.
jtoar added a commit that referenced this pull request Dec 2, 2023
@Tobbe and I reproduced Netlify deploys failing on Node.js with the
following Prisma error (only during run, not build, curiously):

```
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "rhel-openssl-3.0.x"
```

Netlify was deploying with Node.js 20, even if we set the `NODE_VERSION`
env var to `18` in Netlify's deploy settings. It seemed like the
`.nvmrc` file (which specified any lts version: `lts/*`) was taking
precedence over the NODE_VERSION env var.

This PR pins the Node.js lts version to 18 in the .nvmrc. We're not sure
if we even need to ship with this file but this seemed like the safer
change for now.

Update: @Tobbe and I tried removing the `.nvmrc` file in a test deploy.
Netlify defaulted to Node.js 16 which also isn't what we want, so it
should stay.
jtoar added a commit that referenced this pull request Dec 2, 2023
@Tobbe and I reproduced Netlify deploys failing on Node.js with the
following Prisma error (only during run, not build, curiously):

```
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "rhel-openssl-3.0.x"
```

Netlify was deploying with Node.js 20, even if we set the `NODE_VERSION`
env var to `18` in Netlify's deploy settings. It seemed like the
`.nvmrc` file (which specified any lts version: `lts/*`) was taking
precedence over the NODE_VERSION env var.

This PR pins the Node.js lts version to 18 in the .nvmrc. We're not sure
if we even need to ship with this file but this seemed like the safer
change for now.

Update: @Tobbe and I tried removing the `.nvmrc` file in a test deploy.
Netlify defaulted to Node.js 16 which also isn't what we want, so it
should stay.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants