Skip to content

Commit bd82d8e

Browse files
authoredJan 9, 2023
ci: Fix Node 14 git protocol in workflow (#8381)
1 parent 9d461df commit bd82d8e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 

‎.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ jobs:
193193
steps:
194194
- name: Fix usage of insecure GitHub protocol
195195
run: sudo git config --system url."https://github".insteadOf "git://github"
196+
- name: Fix git protocol for Node 14
197+
if: ${{ startsWith(matrix.NODE_VERSION, '14.') }}
198+
run: sudo git config --system url."https://github".insteadOf "ssh://git@github"
196199
- uses: actions/checkout@v2
197200
- name: Use Node.js ${{ matrix.NODE_VERSION }}
198201
uses: actions/setup-node@v2

‎6.0.0.md

+15
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,26 @@ This document only highlights specific changes that require a longer explanation
44

55
---
66

7+
- [Incompatible git protocol with Node 14](#incompatible-git-protocol-with-node-14)
78
- [Import Statement](#import-statement)
89
- [Asynchronous Initialization](#asynchronous-initialization)
910

1011
---
1112

13+
## Incompatible git protocol with Node 14
14+
15+
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.
16+
17+
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:
18+
19+
```
20+
sudo git config --system url."https://github".insteadOf "ssh://git@github"
21+
```
22+
23+
Alternatively you could manually replace the dependency URLs in the package lock file.
24+
25+
⚠️ 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.
26+
1227
## Import Statement
1328

1429
The import and initialization syntax has been simplified with more intuitive naming and structure.

0 commit comments

Comments
 (0)
Please sign in to comment.