fix: use fs backend for host apply-patch
This commit is contained in:
@@ -8,6 +8,7 @@ import { summarizeMicroserviceHealthResponse, summarizeMicroserviceObservation,
|
||||
import { parseNetworkPerfOptions, runNetworkPerf } from "./network-perf";
|
||||
import {
|
||||
buildWindowsPowerShellInvocation,
|
||||
createPosixApplyPatchFileSystem,
|
||||
createWindowsApplyPatchFileSystem,
|
||||
createSshStdoutForwarder,
|
||||
formatSshFailureHint,
|
||||
@@ -1555,7 +1556,9 @@ async function runRemoteSshOverFrontend(session: FrontendSession, target: string
|
||||
if ((normalizedArgs[0] ?? "") === "apply-patch") {
|
||||
const executor: ApplyPatchV2Executor = invocation.route.plane === "win"
|
||||
? { fs: createWindowsApplyPatchFileSystem(invocation, (remoteCommand, input) => runRemoteSshWebSocketCaptureRemoteCommand(session, invocation, remoteCommand, input)) }
|
||||
: { run: (command, input) => runRemoteSshWebSocketCapture(session, invocation, command, input) };
|
||||
: invocation.route.plane === "host"
|
||||
? { fs: createPosixApplyPatchFileSystem(invocation, (command, input) => runRemoteSshWebSocketCapture(session, invocation, command, input)) }
|
||||
: { run: (command, input) => runRemoteSshWebSocketCapture(session, invocation, command, input) };
|
||||
return await runApplyPatchV2({
|
||||
executor,
|
||||
stdin: process.stdin,
|
||||
|
||||
Reference in New Issue
Block a user