Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): preserve native provider executable paths during updates #9850

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/9850/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 53 additions and 6 deletions.

x
0 of 2 viewed, 2 left
50 additions and 4 deletionsapps/server/src/provider/providerMaintenance.test.tsModified
View file
@@ -1,6 +1,7 @@
// @effect-diagnostics nodeBuiltinImport:off
import { expect, it } from "@effect/vitest";
import * as NodeFS from "node:fs";
+import * as NodeChildProcess from "node:child_process";
import * as NodeServices from "@effect/platform-node/NodeServices";
import * as NodeOS from "node:os";
import * as NodePath from "node:path";
@@ -8,6 +9,7 @@
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import * as Crypto from "effect/Crypto";
import * as Effect from "effect/Effect";
+import * as FileSystem from "effect/FileSystem";
import { HttpClient } from "effect/unstable/http";
import {
createProviderVersionAdvisory,
@@ -362,9 +364,9 @@
provider: driver("nativePackageTool"),
packageName: "@example/native-package-tool",
update: {
- command: "native-package-tool update",
+ command: `${nativePackageToolPath} update`,
​
- executable: "native-package-tool",
+ executable: nativePackageToolPath,
​
args: ["update"],
​