File tree 2 files changed +32
-3
lines changed
2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 24
24
- name : Install Node.js
25
25
uses : actions/setup-node@v4
26
26
with :
27
- node-version : ' 18.17.1 '
27
+ node-version : ' lts/* '
28
28
29
29
- name : Read ipfs-webui CID from package.json
30
30
id : read-webui-version
87
87
- name : Install Node.js
88
88
uses : actions/setup-node@v4
89
89
with :
90
- node-version : ' 18.17.1 '
90
+ node-version : ' lts/* '
91
91
92
92
- name : Read ipfs-webui CID from package.json
93
93
id : read-webui-version
@@ -154,7 +154,7 @@ jobs:
154
154
- name : Install Node.js
155
155
uses : actions/setup-node@v4
156
156
with :
157
- node-version : ' 18.17.1 '
157
+ node-version : ' lts/* '
158
158
159
159
- name : Read ipfs-webui CID from package.json
160
160
id : read-webui-version
Original file line number Diff line number Diff line change
1
+ diff --git a/node_modules/kubo/bin/ipfs b/node_modules/kubo/bin/ipfs
2
+ index 70b8f92..4d3c24c 100644
3
+ --- a/node_modules/kubo/src/download.js
4
+ +++ b/node_modules/kubo/src/download.js
5
+ @@ -204,7 +204,23 @@ async function link ({ depBin, version }) {
6
+ }
7
+
8
+ console.info('Linking', depBin, 'to', localBin)
9
+ - fs.symlinkSync(depBin, localBin)
10
+ + try {
11
+ + fs.symlinkSync(depBin, localBin)
12
+ + } catch (err) {
13
+ + // Try to recover when creating symlink on modern Windows fails (https://github.com/ipfs/npm-kubo/issues/68)
14
+ + if (isWin && typeof err === 'object' && err !== null && 'code' in err && err.code === 'EPERM') {
15
+ + console.info('Symlink creation failed due to insufficient privileges. Attempting to copy file instead...')
16
+ + try {
17
+ + fs.copyFileSync(depBin, localBin)
18
+ + console.info('Copying', depBin, 'to', localBin)
19
+ + } catch (copyErr) {
20
+ + console.error('File copy also failed:', copyErr)
21
+ + throw copyErr
22
+ + }
23
+ + } else {
24
+ + throw err
25
+ + }
26
+ + }
27
+
28
+ if (isWin) {
29
+ // On Windows, update the shortcut file to use the .exe
You can’t perform that action at this time.
0 commit comments