The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build OpenAI, reference main (8d469e), with Swift 6.0 for Linux on 10 Oct 2024 11:40:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-realtime-openai.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/m1guelpf/swift-realtime-openai
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8d469ee Add EmergeTools badge
Cloned https://github.com/m1guelpf/swift-realtime-openai.git
Revision (git rev-parse @):
8d469ee01c935b778a009accd6094664264bb603
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-realtime-openai.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/m1guelpf/swift-realtime-openai.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling OpenAI ServerError.swift
[4/15] Compiling OpenAI Response.swift
[5/16] Compiling OpenAI Session.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/16] Compiling OpenAI String+random.swift
[7/16] Compiling OpenAI ClientEvent.swift
[8/16] Emitting module OpenAI
/host/spi-builder-workspace/src/Conversation.swift:7:2: error: unknown attribute 'Observable'
  5 | }
  6 |
  7 | @Observable
    |  `- error: unknown attribute 'Observable'
  8 | public final class Conversation: Sendable {
  9 | 	private let client: RealtimeAPI
/host/spi-builder-workspace/src/Conversation.swift:60:48: error: cannot find type 'URLRequest' in scope
 58 | 	}
 59 |
 60 | 	public convenience init(connectingTo request: URLRequest) {
    |                                                `- error: cannot find type 'URLRequest' in scope
 61 | 		self.init(client: RealtimeAPI(connectingTo: request))
 62 | 	}
/host/spi-builder-workspace/src/OpenAI.swift:82:1: error: type 'RealtimeAPI' does not conform to protocol 'URLSessionWebSocketDelegate'
80 | }
81 |
82 | extension RealtimeAPI: URLSessionWebSocketDelegate {
   | `- error: type 'RealtimeAPI' does not conform to protocol 'URLSessionWebSocketDelegate'
83 | 	public func urlSession(_: URLSession, webSocketTask _: URLSessionWebSocketTask, didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?) {
84 | 		stream.finish()
FoundationNetworking.URLSessionWebSocketDelegate:2:10: note: protocol requires function 'urlSession(_:webSocketTask:didOpenWithProtocol:)' with type '(URLSession, URLSessionWebSocketTask, String?) -> ()'
1 | public protocol URLSessionWebSocketDelegate : URLSessionTaskDelegate {
2 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
  |          `- note: protocol requires function 'urlSession(_:webSocketTask:didOpenWithProtocol:)' with type '(URLSession, URLSessionWebSocketTask, String?) -> ()'
3 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
4 | }
[9/16] Compiling OpenAI Item.swift
[10/16] Compiling OpenAI Conversation.swift
/host/spi-builder-workspace/src/Conversation.swift:7:2: error: unknown attribute 'Observable'
  5 | }
  6 |
  7 | @Observable
    |  `- error: unknown attribute 'Observable'
  8 | public final class Conversation: Sendable {
  9 | 	private let client: RealtimeAPI
/host/spi-builder-workspace/src/Conversation.swift:60:48: error: cannot find type 'URLRequest' in scope
 58 | 	}
 59 |
 60 | 	public convenience init(connectingTo request: URLRequest) {
    |                                                `- error: cannot find type 'URLRequest' in scope
 61 | 		self.init(client: RealtimeAPI(connectingTo: request))
 62 | 	}
/host/spi-builder-workspace/src/Conversation.swift:51:22: error: value of type 'DispatchQueue' has no member 'asyncAndWait'
 49 | 		errorStream.finish()
 50 |
 51 | 		DispatchQueue.main.asyncAndWait {
    |                      `- error: value of type 'DispatchQueue' has no member 'asyncAndWait'
 52 | 			cancelTask?()
 53 | 		}
[11/16] Compiling OpenAI Continuation+error.swift
/host/spi-builder-workspace/src/Conversation.swift:7:2: error: unknown attribute 'Observable'
  5 | }
  6 |
  7 | @Observable
    |  `- error: unknown attribute 'Observable'
  8 | public final class Conversation: Sendable {
  9 | 	private let client: RealtimeAPI
/host/spi-builder-workspace/src/Conversation.swift:60:48: error: cannot find type 'URLRequest' in scope
 58 | 	}
 59 |
 60 | 	public convenience init(connectingTo request: URLRequest) {
    |                                                `- error: cannot find type 'URLRequest' in scope
 61 | 		self.init(client: RealtimeAPI(connectingTo: request))
 62 | 	}
/host/spi-builder-workspace/src/Conversation.swift:51:22: error: value of type 'DispatchQueue' has no member 'asyncAndWait'
 49 | 		errorStream.finish()
 50 |
 51 | 		DispatchQueue.main.asyncAndWait {
    |                      `- error: value of type 'DispatchQueue' has no member 'asyncAndWait'
 52 | 			cancelTask?()
 53 | 		}
[12/16] Compiling OpenAI OpenAI.swift
/host/spi-builder-workspace/src/OpenAI.swift:82:1: error: type 'RealtimeAPI' does not conform to protocol 'URLSessionWebSocketDelegate'
80 | }
81 |
82 | extension RealtimeAPI: URLSessionWebSocketDelegate {
   | `- error: type 'RealtimeAPI' does not conform to protocol 'URLSessionWebSocketDelegate'
83 | 	public func urlSession(_: URLSession, webSocketTask _: URLSessionWebSocketTask, didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?) {
84 | 		stream.finish()
FoundationNetworking.URLSessionWebSocketDelegate:2:10: note: protocol requires function 'urlSession(_:webSocketTask:didOpenWithProtocol:)' with type '(URLSession, URLSessionWebSocketTask, String?) -> ()'
1 | public protocol URLSessionWebSocketDelegate : URLSessionTaskDelegate {
2 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
  |          `- note: protocol requires function 'urlSession(_:webSocketTask:didOpenWithProtocol:)' with type '(URLSession, URLSessionWebSocketTask, String?) -> ()'
3 |     func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
4 | }
/host/spi-builder-workspace/src/OpenAI.swift:53:16: error: extra trailing closure passed in call
51 |
52 | 	private func receiveMessage() {
53 | 		task.receive { [weak self] result in
   |                `- error: extra trailing closure passed in call
54 | 			guard let self else { return }
55 |
/host/spi-builder-workspace/src/OpenAI.swift:53:30: error: cannot infer type of closure parameter 'result' without a type annotation
51 |
52 | 	private func receiveMessage() {
53 | 		task.receive { [weak self] result in
   |                              `- error: cannot infer type of closure parameter 'result' without a type annotation
54 | 			guard let self else { return }
55 |
[13/16] Compiling OpenAI ServerEvent.swift
BUILD FAILURE 6.0 linux