Skip to content

Commit

Permalink
Modify NIX and keyserver configuration files to allow node version >= 18
Browse files Browse the repository at this point in the history
Summary:
This differential applies temporary solution to allow usage of node version >= 18 since it is necessary for current project regarding blob service and big notifications.
The solution is not perfect and the correct one will be implemented in future: https://linear.app/comm/issue/ENG-4373/revert-to-using-nvm-to-lock-into-specific-node-version

Test Plan:
1. run `yarn cleaninstall`
2. run `nix develop`
3. run `node --version` and expect the output to match 18.12.1

Reviewers: ashoat, jon, O1 Nix

Reviewed By: ashoat, jon, O1 Nix

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D8520
  • Loading branch information
marcinwasowicz committed Aug 10, 2023
1 parent 9f9aae9 commit 649a14c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion keyserver/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.18.0
18.12.1
2 changes: 1 addition & 1 deletion keyserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.18.0-bullseye
FROM node:18.12.1-bullseye

#-------------------------------------------------------------------------------
# STEP 0: SET UP USER
Expand Down
4 changes: 2 additions & 2 deletions nix/dev-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
, localstack
, mariadb
, mariadb-up
, nodejs-16_x-openssl_1_1
, nodejs
, olm
, openjdk11
, openssl
Expand Down Expand Up @@ -65,7 +65,7 @@ mkShell {

# node development
mariadb
nodejs-16_x-openssl_1_1
nodejs
yarn
python3
redis
Expand Down
5 changes: 0 additions & 5 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,4 @@ prev:
});

rabbitmq-up = prev.callPackage ./rabbitmq-up-mac.nix { };

# Ensure that yarn is using the pinned version
yarn = prev.yarn.override (_: {
nodejs = final.nodejs-16_x-openssl_1_1;
});
}

0 comments on commit 649a14c

Please sign in to comment.