pinokiod 3.6.42 → 3.6.44
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/kernel/bin/conda.js +2 -1
- package/kernel/bin/git.js +2 -2
- package/kernel/bin/index.js +10 -1
- package/kernel/gitconfig_template +7 -0
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -143,7 +143,8 @@ report_errors: false`)
|
|
|
143
143
|
let channel = chunks[3]
|
|
144
144
|
let coerced = semver.coerce(version)
|
|
145
145
|
let mamba_requirement = ">=24.11.1"
|
|
146
|
-
if (semver.satisfies(coerced, mamba_requirement) && channel === "conda-forge") {
|
|
146
|
+
//if (semver.satisfies(coerced, mamba_requirement) && channel === "conda-forge") {
|
|
147
|
+
if (semver.satisfies(coerced, mamba_requirement)) {
|
|
147
148
|
conda_check.mamba = true
|
|
148
149
|
}
|
|
149
150
|
}
|
package/kernel/bin/git.js
CHANGED
|
@@ -35,12 +35,12 @@ class Git {
|
|
|
35
35
|
await this.kernel.bin.exec({ message: "conda remove git" }, ondata)
|
|
36
36
|
}
|
|
37
37
|
env() {
|
|
38
|
-
if (this.kernel.platform === 'win32') {
|
|
38
|
+
// if (this.kernel.platform === 'win32') {
|
|
39
39
|
let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
|
|
40
40
|
return {
|
|
41
41
|
GIT_CONFIG_GLOBAL: gitconfig_path
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
// }
|
|
44
44
|
}
|
|
45
45
|
async requires() {
|
|
46
46
|
return ["conda"]
|
package/kernel/bin/index.js
CHANGED
|
@@ -278,6 +278,14 @@ class Bin {
|
|
|
278
278
|
// pipconfig_path
|
|
279
279
|
// )
|
|
280
280
|
}
|
|
281
|
+
|
|
282
|
+
// add gitconfig => support git lfs, long path, etc.
|
|
283
|
+
let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
|
|
284
|
+
// check if gitconfig exists
|
|
285
|
+
await fs.promises.copyFile(
|
|
286
|
+
path.resolve(__dirname, "..", "gitconfig_template"),
|
|
287
|
+
gitconfig_path
|
|
288
|
+
)
|
|
281
289
|
}
|
|
282
290
|
|
|
283
291
|
|
|
@@ -347,7 +355,8 @@ class Bin {
|
|
|
347
355
|
let coerced = semver.coerce(version)
|
|
348
356
|
let mamba_requirement = ">=24.11.1"
|
|
349
357
|
console.log({ name, channel, version })
|
|
350
|
-
if (semver.satisfies(coerced, mamba_requirement) && channel === "conda-forge") {
|
|
358
|
+
//if (semver.satisfies(coerced, mamba_requirement) && channel === "conda-forge") {
|
|
359
|
+
if (semver.satisfies(coerced, mamba_requirement)) {
|
|
351
360
|
conda_check.mamba = true
|
|
352
361
|
}
|
|
353
362
|
}
|