Skip to content

Commit

Permalink
ci: Fix Node 14 git protocol in workflow (parse-community#8381)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Jan 9, 2023
1 parent 9d461df commit bd82d8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions 6.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bd82d8e

Please sign in to comment.