Skip to content

Commit f122e04

Browse files
committed
Fix REPL args retrieval failure in GitHub Actions context
1 parent 08b0ad5 commit f122e04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/swift-sh/Helpers/DepsPackage.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ struct DepsPackage {
105105
* We do one better and give it a pty directly and we know we’re good. */
106106
// environment: ["PATH": "/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin", "NSUnbufferedIO": "YES"],
107107
stdinRedirect: .fromNull, stdoutRedirect: .toFd(slaveFd, giveOwnership: true), stderrRedirect: .capture, additionalOutputFileDescriptors: [masterFd],
108-
lineSeparators: .newLine(unix: true, legacyMacOS: false, windows: true/* Because of the pty, I think. */)
108+
lineSeparators: .newLine(unix: true, legacyMacOS: false, windows: true/* Because of the pty, I think. */),
109+
expectedTerminations: [(0, .exit), (9, .uncaughtSignal)/* For some unknown reason, in GitHub Actions, swift ends properly but is reported as having been killed with uncaught signal 9. */]
109110
)
110111
var ret: [String]?
111112
var errorOutput = [String]()

0 commit comments

Comments
 (0)