balena-cli 17.1.3 → 17.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## 17.1.4 - 2023-09-28
|
|
8
|
+
|
|
9
|
+
* Bump oclif to ^3.17.1 [Otávio Jacobi]
|
|
10
|
+
|
|
7
11
|
## 17.1.3 - 2023-09-26
|
|
8
12
|
|
|
9
13
|
* Move to @oclif/core v2 [Otávio Jacobi]
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.4",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "balena-cli",
|
|
9
|
-
"version": "17.1.
|
|
9
|
+
"version": "17.1.4",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"mocha": "^8.4.0",
|
|
168
168
|
"mock-require": "^3.0.3",
|
|
169
169
|
"nock": "^13.2.1",
|
|
170
|
-
"oclif": "^3.
|
|
170
|
+
"oclif": "^3.17.1",
|
|
171
171
|
"parse-link-header": "^2.0.0",
|
|
172
172
|
"pkg": "^5.8.1",
|
|
173
173
|
"publish-release": "^1.6.1",
|
|
@@ -2793,9 +2793,9 @@
|
|
|
2793
2793
|
}
|
|
2794
2794
|
},
|
|
2795
2795
|
"node_modules/@sigstore/sign/node_modules/glob": {
|
|
2796
|
-
"version": "10.3.
|
|
2797
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
2798
|
-
"integrity": "sha512-
|
|
2796
|
+
"version": "10.3.10",
|
|
2797
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
2798
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
2799
2799
|
"dev": true,
|
|
2800
2800
|
"dependencies": {
|
|
2801
2801
|
"foreground-child": "^3.1.0",
|
|
@@ -4268,6 +4268,24 @@
|
|
|
4268
4268
|
"lodash": "^4.17.14"
|
|
4269
4269
|
}
|
|
4270
4270
|
},
|
|
4271
|
+
"node_modules/async-retry": {
|
|
4272
|
+
"version": "1.3.3",
|
|
4273
|
+
"resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz",
|
|
4274
|
+
"integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==",
|
|
4275
|
+
"dev": true,
|
|
4276
|
+
"dependencies": {
|
|
4277
|
+
"retry": "0.13.1"
|
|
4278
|
+
}
|
|
4279
|
+
},
|
|
4280
|
+
"node_modules/async-retry/node_modules/retry": {
|
|
4281
|
+
"version": "0.13.1",
|
|
4282
|
+
"resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz",
|
|
4283
|
+
"integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==",
|
|
4284
|
+
"dev": true,
|
|
4285
|
+
"engines": {
|
|
4286
|
+
"node": ">= 4"
|
|
4287
|
+
}
|
|
4288
|
+
},
|
|
4271
4289
|
"node_modules/asynckit": {
|
|
4272
4290
|
"version": "0.4.0",
|
|
4273
4291
|
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
|
@@ -14122,15 +14140,16 @@
|
|
|
14122
14140
|
}
|
|
14123
14141
|
},
|
|
14124
14142
|
"node_modules/oclif": {
|
|
14125
|
-
"version": "3.
|
|
14126
|
-
"resolved": "https://registry.npmjs.org/oclif/-/oclif-3.
|
|
14127
|
-
"integrity": "sha512-
|
|
14143
|
+
"version": "3.17.1",
|
|
14144
|
+
"resolved": "https://registry.npmjs.org/oclif/-/oclif-3.17.1.tgz",
|
|
14145
|
+
"integrity": "sha512-qwop0W9s5nJJ9tTdLsYXxxvGSNc9xKjXccEAGCXM+x8NmGtZ4P89FwqDY4PIG7IeV9VNpYhZKQArpZNwPGn0CQ==",
|
|
14128
14146
|
"dev": true,
|
|
14129
14147
|
"dependencies": {
|
|
14130
14148
|
"@oclif/core": "^2.11.4",
|
|
14131
14149
|
"@oclif/plugin-help": "^5.2.14",
|
|
14132
14150
|
"@oclif/plugin-not-found": "^2.3.32",
|
|
14133
14151
|
"@oclif/plugin-warn-if-update-available": "^2.0.44",
|
|
14152
|
+
"async-retry": "^1.3.3",
|
|
14134
14153
|
"aws-sdk": "^2.1231.0",
|
|
14135
14154
|
"concurrently": "^7.6.0",
|
|
14136
14155
|
"debug": "^4.3.3",
|
|
@@ -16441,9 +16460,9 @@
|
|
|
16441
16460
|
}
|
|
16442
16461
|
},
|
|
16443
16462
|
"node_modules/read-package-json/node_modules/glob": {
|
|
16444
|
-
"version": "10.3.
|
|
16445
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
16446
|
-
"integrity": "sha512-
|
|
16463
|
+
"version": "10.3.10",
|
|
16464
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
16465
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
16447
16466
|
"dev": true,
|
|
16448
16467
|
"dependencies": {
|
|
16449
16468
|
"foreground-child": "^3.1.0",
|
|
@@ -17822,9 +17841,9 @@
|
|
|
17822
17841
|
}
|
|
17823
17842
|
},
|
|
17824
17843
|
"node_modules/sigstore/node_modules/glob": {
|
|
17825
|
-
"version": "10.3.
|
|
17826
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
17827
|
-
"integrity": "sha512-
|
|
17844
|
+
"version": "10.3.10",
|
|
17845
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
17846
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
17828
17847
|
"dev": true,
|
|
17829
17848
|
"dependencies": {
|
|
17830
17849
|
"foreground-child": "^3.1.0",
|
|
@@ -19851,9 +19870,9 @@
|
|
|
19851
19870
|
}
|
|
19852
19871
|
},
|
|
19853
19872
|
"node_modules/tuf-js/node_modules/glob": {
|
|
19854
|
-
"version": "10.3.
|
|
19855
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
19856
|
-
"integrity": "sha512-
|
|
19873
|
+
"version": "10.3.10",
|
|
19874
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
19875
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
19857
19876
|
"dev": true,
|
|
19858
19877
|
"dependencies": {
|
|
19859
19878
|
"foreground-child": "^3.1.0",
|
|
@@ -22140,9 +22159,9 @@
|
|
|
22140
22159
|
}
|
|
22141
22160
|
},
|
|
22142
22161
|
"node_modules/yeoman-generator/node_modules/cacache/node_modules/glob": {
|
|
22143
|
-
"version": "10.3.
|
|
22144
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
22145
|
-
"integrity": "sha512-
|
|
22162
|
+
"version": "10.3.10",
|
|
22163
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
22164
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
22146
22165
|
"dev": true,
|
|
22147
22166
|
"dependencies": {
|
|
22148
22167
|
"foreground-child": "^3.1.0",
|
|
@@ -25102,9 +25121,9 @@
|
|
|
25102
25121
|
}
|
|
25103
25122
|
},
|
|
25104
25123
|
"glob": {
|
|
25105
|
-
"version": "10.3.
|
|
25106
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
25107
|
-
"integrity": "sha512-
|
|
25124
|
+
"version": "10.3.10",
|
|
25125
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
25126
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
25108
25127
|
"dev": true,
|
|
25109
25128
|
"requires": {
|
|
25110
25129
|
"foreground-child": "^3.1.0",
|
|
@@ -26404,6 +26423,23 @@
|
|
|
26404
26423
|
"lodash": "^4.17.14"
|
|
26405
26424
|
}
|
|
26406
26425
|
},
|
|
26426
|
+
"async-retry": {
|
|
26427
|
+
"version": "1.3.3",
|
|
26428
|
+
"resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz",
|
|
26429
|
+
"integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==",
|
|
26430
|
+
"dev": true,
|
|
26431
|
+
"requires": {
|
|
26432
|
+
"retry": "0.13.1"
|
|
26433
|
+
},
|
|
26434
|
+
"dependencies": {
|
|
26435
|
+
"retry": {
|
|
26436
|
+
"version": "0.13.1",
|
|
26437
|
+
"resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz",
|
|
26438
|
+
"integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==",
|
|
26439
|
+
"dev": true
|
|
26440
|
+
}
|
|
26441
|
+
}
|
|
26442
|
+
},
|
|
26407
26443
|
"asynckit": {
|
|
26408
26444
|
"version": "0.4.0",
|
|
26409
26445
|
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
|
@@ -34166,15 +34202,16 @@
|
|
|
34166
34202
|
}
|
|
34167
34203
|
},
|
|
34168
34204
|
"oclif": {
|
|
34169
|
-
"version": "3.
|
|
34170
|
-
"resolved": "https://registry.npmjs.org/oclif/-/oclif-3.
|
|
34171
|
-
"integrity": "sha512-
|
|
34205
|
+
"version": "3.17.1",
|
|
34206
|
+
"resolved": "https://registry.npmjs.org/oclif/-/oclif-3.17.1.tgz",
|
|
34207
|
+
"integrity": "sha512-qwop0W9s5nJJ9tTdLsYXxxvGSNc9xKjXccEAGCXM+x8NmGtZ4P89FwqDY4PIG7IeV9VNpYhZKQArpZNwPGn0CQ==",
|
|
34172
34208
|
"dev": true,
|
|
34173
34209
|
"requires": {
|
|
34174
34210
|
"@oclif/core": "^2.11.4",
|
|
34175
34211
|
"@oclif/plugin-help": "^5.2.14",
|
|
34176
34212
|
"@oclif/plugin-not-found": "^2.3.32",
|
|
34177
34213
|
"@oclif/plugin-warn-if-update-available": "^2.0.44",
|
|
34214
|
+
"async-retry": "^1.3.3",
|
|
34178
34215
|
"aws-sdk": "^2.1231.0",
|
|
34179
34216
|
"concurrently": "^7.6.0",
|
|
34180
34217
|
"debug": "^4.3.3",
|
|
@@ -35892,9 +35929,9 @@
|
|
|
35892
35929
|
}
|
|
35893
35930
|
},
|
|
35894
35931
|
"glob": {
|
|
35895
|
-
"version": "10.3.
|
|
35896
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
35897
|
-
"integrity": "sha512-
|
|
35932
|
+
"version": "10.3.10",
|
|
35933
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
35934
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
35898
35935
|
"dev": true,
|
|
35899
35936
|
"requires": {
|
|
35900
35937
|
"foreground-child": "^3.1.0",
|
|
@@ -37024,9 +37061,9 @@
|
|
|
37024
37061
|
}
|
|
37025
37062
|
},
|
|
37026
37063
|
"glob": {
|
|
37027
|
-
"version": "10.3.
|
|
37028
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
37029
|
-
"integrity": "sha512-
|
|
37064
|
+
"version": "10.3.10",
|
|
37065
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
37066
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
37030
37067
|
"dev": true,
|
|
37031
37068
|
"requires": {
|
|
37032
37069
|
"foreground-child": "^3.1.0",
|
|
@@ -38624,9 +38661,9 @@
|
|
|
38624
38661
|
}
|
|
38625
38662
|
},
|
|
38626
38663
|
"glob": {
|
|
38627
|
-
"version": "10.3.
|
|
38628
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
38629
|
-
"integrity": "sha512-
|
|
38664
|
+
"version": "10.3.10",
|
|
38665
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
38666
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
38630
38667
|
"dev": true,
|
|
38631
38668
|
"requires": {
|
|
38632
38669
|
"foreground-child": "^3.1.0",
|
|
@@ -40359,9 +40396,9 @@
|
|
|
40359
40396
|
},
|
|
40360
40397
|
"dependencies": {
|
|
40361
40398
|
"glob": {
|
|
40362
|
-
"version": "10.3.
|
|
40363
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.
|
|
40364
|
-
"integrity": "sha512-
|
|
40399
|
+
"version": "10.3.10",
|
|
40400
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
|
40401
|
+
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
|
40365
40402
|
"dev": true,
|
|
40366
40403
|
"requires": {
|
|
40367
40404
|
"foreground-child": "^3.1.0",
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.4",
|
|
4
4
|
"description": "The official balena Command Line Interface",
|
|
5
5
|
"main": "./build/app.js",
|
|
6
6
|
"homepage": "https://github.com/balena-io/balena-cli",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"mocha": "^8.4.0",
|
|
181
181
|
"mock-require": "^3.0.3",
|
|
182
182
|
"nock": "^13.2.1",
|
|
183
|
-
"oclif": "^3.
|
|
183
|
+
"oclif": "^3.17.1",
|
|
184
184
|
"parse-link-header": "^2.0.0",
|
|
185
185
|
"pkg": "^5.8.1",
|
|
186
186
|
"publish-release": "^1.6.1",
|
|
@@ -280,6 +280,6 @@
|
|
|
280
280
|
"windosu": "^0.3.0"
|
|
281
281
|
},
|
|
282
282
|
"versionist": {
|
|
283
|
-
"publishedAt": "2023-09-
|
|
283
|
+
"publishedAt": "2023-09-28T21:37:57.112Z"
|
|
284
284
|
}
|
|
285
285
|
}
|
|
@@ -170,22 +170,18 @@ index 216759d..cab0e6e 100644
|
|
|
170
170
|
return path.join(base, [target.platform, target.arch].join('-'), (0, upload_util_1.templateShortKey)('baseDir', { bin: config.bin }));
|
|
171
171
|
return path.join(base, (0, upload_util_1.templateShortKey)('baseDir', { bin: config.bin }));
|
|
172
172
|
diff --git a/node_modules/oclif/lib/tarballs/node.js b/node_modules/oclif/lib/tarballs/node.js
|
|
173
|
-
index
|
|
173
|
+
index 35f1d0c..5349eaa 100644
|
|
174
174
|
--- a/node_modules/oclif/lib/tarballs/node.js
|
|
175
175
|
+++ b/node_modules/oclif/lib/tarballs/node.js
|
|
176
|
-
@@ -
|
|
177
|
-
const
|
|
178
|
-
const pipeline = (0,
|
|
179
|
-
const exec = (0,
|
|
176
|
+
@@ -12,6 +12,7 @@ const retry = require("async-retry");
|
|
177
|
+
const util_2 = require("../util");
|
|
178
|
+
const pipeline = (0, util_1.promisify)(stream_1.pipeline);
|
|
179
|
+
const exec = (0, util_1.promisify)(child_process_1.exec);
|
|
180
180
|
+const { isMSYS2, msysExec, toMsysPath } = require("../util");
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
+
|
|
185
|
-
}
|
|
186
|
-
catch (error) {
|
|
187
|
-
if (error.code === 127)
|
|
188
|
-
@@ -51,8 +52,10 @@ async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
|
|
181
|
+
const RETRY_TIMEOUT_MS = 1000;
|
|
182
|
+
async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
|
|
183
|
+
if (arch === 'arm')
|
|
184
|
+
@@ -42,8 +43,10 @@ async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
|
|
189
185
|
const basedir = path.dirname(tarball);
|
|
190
186
|
await fs.promises.mkdir(basedir, { recursive: true });
|
|
191
187
|
await pipeline(got_1.default.stream(url), fs.createWriteStream(tarball));
|
|
@@ -198,7 +194,7 @@ index 1a4e09b..2d0566f 100644
|
|
|
198
194
|
};
|
|
199
195
|
const extract = async () => {
|
|
200
196
|
(0, log_1.log)(`extracting ${nodeBase}`);
|
|
201
|
-
@@ -
|
|
197
|
+
@@ -51,7 +54,7 @@ async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
|
|
202
198
|
await fs.promises.mkdir(nodeTmp, { recursive: true });
|
|
203
199
|
await fs.promises.mkdir(path.dirname(cache), { recursive: true });
|
|
204
200
|
if (platform === 'win32') {
|
|
@@ -227,13 +223,25 @@ index 6963e4d..430472d 100644
|
|
|
227
223
|
};
|
|
228
224
|
return _.template(templates[type])(Object.assign({}, options));
|
|
229
225
|
diff --git a/node_modules/oclif/lib/util.js b/node_modules/oclif/lib/util.js
|
|
230
|
-
index
|
|
226
|
+
index 816c71b..1384aa6 100644
|
|
231
227
|
--- a/node_modules/oclif/lib/util.js
|
|
232
228
|
+++ b/node_modules/oclif/lib/util.js
|
|
233
|
-
@@ -
|
|
234
|
-
}
|
|
235
|
-
return result;
|
|
229
|
+
@@ -95,9 +95,10 @@ const hash = async (algo, fp) => {
|
|
230
|
+
});
|
|
236
231
|
};
|
|
232
|
+
exports.hash = hash;
|
|
233
|
+
+
|
|
234
|
+
async function checkFor7Zip() {
|
|
235
|
+
try {
|
|
236
|
+
- await exec('7z');
|
|
237
|
+
+ await msysExec('7z', { stdio: [0, null, 2] });
|
|
238
|
+
}
|
|
239
|
+
catch (error) {
|
|
240
|
+
if (error.code === 127)
|
|
241
|
+
@@ -107,3 +108,44 @@ async function checkFor7Zip() {
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
exports.checkFor7Zip = checkFor7Zip;
|
|
237
245
|
+
|
|
238
246
|
+// OSTYPE is 'msys' for MSYS 1.0 and for MSYS2, or 'cygwin' for Cygwin
|
|
239
247
|
+// but note that OSTYPE is not "exported" by default, so run: export OSTYPE=$OSTYPE
|
|
@@ -251,10 +259,6 @@ index 75bf3c6..c6a9c49 100644
|
|
|
251
259
|
+exports.isMSYS2 = isMSYS2;
|
|
252
260
|
+console.error(`[debug] oclif MSYSSHELLPATH=${MSYSSHELLPATH} MSYSTEM=${process.env.MSYSTEM} OSTYPE=${process.env.OSTYPE} isMSYS2=${isMSYS2} isMingGW=${isMinGW} isCygwin=${isCygwin}`);
|
|
253
261
|
+
|
|
254
|
-
+const child_process_1 = require("child_process");
|
|
255
|
-
+const node_util_1 = require("node:util");
|
|
256
|
-
+const exec = (0, node_util_1.promisify)(child_process_1.exec);
|
|
257
|
-
+
|
|
258
262
|
+/* Convert a Windows path like 'C:\tmp' to a MSYS path like '/c/tmp' */
|
|
259
263
|
+function toMsysPath(windowsPath) {
|
|
260
264
|
+ // 'c:\myfolder' -> '/c/myfolder' or '/cygdrive/c/myfolder'
|
|
@@ -279,6 +283,3 @@ index 75bf3c6..c6a9c49 100644
|
|
|
279
283
|
+ return exec(`"${sh}" "${args.join('" "')}"`, options);
|
|
280
284
|
+}
|
|
281
285
|
+exports.msysExec = msysExec;
|
|
282
|
-
exports.sortVersionsObjectByKeysDesc = sortVersionsObjectByKeysDesc;
|
|
283
|
-
const homeRegexp = new RegExp(`\\B${os.homedir().replace('/', '\\/')}`, 'g');
|
|
284
|
-
const curRegexp = new RegExp(`\\B${process.cwd()}`, 'g');
|