Skip to content

Commit 0d1b747

Browse files
committed
Fix misuse of ProcessInfo.
1 parent 81608cd commit 0d1b747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageExtension/PackageExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ fileprivate func TargetBuildContextFactory() -> TargetBuildContext {
311311
fflush(stdout)
312312
}
313313
// Look for the input JSON as the last argument of the invocation.
314-
guard let data = ProcessInfo().arguments.last?.data(using: .utf8) else {
314+
guard let data = ProcessInfo.processInfo.arguments.last?.data(using: .utf8) else {
315315
output.diagnostics.append(Diagnostic(severity: .error, message:"Expected last argument to contain JSON input data in UTF-8 encoding, but didn't find it.", file: nil, line: nil))
316316
exit(1)
317317
}

0 commit comments

Comments
 (0)