Skip to content

Commit

Permalink
chore(deps): Add node-gyp version control across different distros MO…
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik authored Oct 23, 2024
1 parent 87b8948 commit 6f46d3a
Show file tree
Hide file tree
Showing 3 changed files with 669 additions and 613 deletions.
8 changes: 6 additions & 2 deletions .evergreen/install-npm-deps.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
set -e
set -x

npm ci --verbose
if [[ "${DISTRO_ID}" =~ ^(rhel|ubuntu1804) ]]; then
# RHEL and Ubuntu 18.04 use Python 3.6 which isn't supported by newer node-gyp versions
npm i node-gyp@9 --verbose --force
fi

npm ci --verbose
echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE"

# if MONOGDB_DRIVER_VERSION_OVERRIDE is set, then we want to replace the package version
Expand Down Expand Up @@ -30,4 +34,4 @@ npm run mark-ci-required-optional-dependencies
npm run evergreen-release bump

echo "npm packages after installation"
npm ls || true
npm ls || true
Loading

0 comments on commit 6f46d3a

Please sign in to comment.