From bd82d8ede1b77c7f30d58210e43ec648f8d7389a Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Mon, 9 Jan 2023 09:54:11 +0100 Subject: [PATCH] ci: Fix Node 14 git protocol in workflow (#8381) --- .github/workflows/ci.yml | 3 +++ 6.0.0.md | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e463b99..c030722f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,9 @@ jobs: steps: - name: Fix usage of insecure GitHub protocol run: sudo git config --system url."https://github".insteadOf "git://github" + - name: Fix git protocol for Node 14 + if: ${{ startsWith(matrix.NODE_VERSION, '14.') }} + run: sudo git config --system url."https://github".insteadOf "ssh://git@github" - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.NODE_VERSION }} uses: actions/setup-node@v2 diff --git a/6.0.0.md b/6.0.0.md index 31eefc00..780be799 100644 --- a/6.0.0.md +++ b/6.0.0.md @@ -4,11 +4,26 @@ This document only highlights specific changes that require a longer explanation --- +- [Incompatible git protocol with Node 14](#incompatible-git-protocol-with-node-14) - [Import Statement](#import-statement) - [Asynchronous Initialization](#asynchronous-initialization) --- +## Incompatible git protocol with Node 14 + +Parse Server 6 uses the Node Package Manger (npm) package lock file version 2. While version 2 is supposed to be backwards compatible with version 1, you may still encounter errors due to incompatible git protocols that cannot be interpreted correctly by npm bundled with Node 14. + +If you are encountering issues installing Parse Server on Node 14 because of dependency references in the package lock file using the `ssh` protocol, configure git to use the `https` protocol instead: + +``` +sudo git config --system url."https://github".insteadOf "ssh://git@github" +``` + +Alternatively you could manually replace the dependency URLs in the package lock file. + +⚠️ You could also delete the package lock file and recreate it with Node 14. Keep in mind that doing so you are not using an official version of Parse Server anymore. You may be using dependencies that have not been tested as part of the Parse Server release process. + ## Import Statement The import and initialization syntax has been simplified with more intuitive naming and structure.