Skip to content

Commit

Permalink
fix(pulumi): attempt to fix unhandled I/O error
Browse files Browse the repository at this point in the history
  • Loading branch information
thsig committed Aug 13, 2024
1 parent c25ebe5 commit b17cb0f
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions core/src/util/ext-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import AsyncLock from "async-lock"
import type { PluginContext } from "../plugin-context.js"
import { LogLevel } from "../logger/logger.js"
import { uuidv4 } from "./random.js"
import { streamLogs, waitForProcess } from "./process.js"
// import { streamLogs, waitForProcess } from "./process.js"
import { pipeline } from "node:stream/promises"
import type { MaybeSecret } from "./secrets.js"

Expand Down Expand Up @@ -133,21 +133,22 @@ export abstract class CliWrapper {
cwd,
env,
log,
ctx,
errorPrefix,
// ctx,
// errorPrefix,
}: SpawnParams & { errorPrefix: string; ctx: PluginContext; statusLine?: Log }) {
const proc = await this.spawn({ args, cwd, env, log })

streamLogs({
proc,
name: this.name,
ctx,
})

await waitForProcess({
proc,
errorPrefix,
})
return this.exec({ args, cwd, env, log, ignoreError: false })
// const proc = await this.spawn({ args, cwd, env, log })

// streamLogs({
// proc,
// name: this.name,
// ctx,
// })

// await waitForProcess({
// proc,
// errorPrefix,
// })
}

/**
Expand Down

0 comments on commit b17cb0f

Please sign in to comment.