Build Information
Successful build of SwiftMail, reference main (90ce57), with Swift 6.1 for Linux on 1 May 2026 12:16:36 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1Build Log
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1292/1303] Compiling SwiftMail Flag+Equatable.swift
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1293/1303] Compiling SwiftMail Flag.swift
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1294/1303] Compiling SwiftMail Header+CustomStringConvertible.swift
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1295/1303] Compiling SwiftMail IMAPMessageAttribute.swift
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1296/1303] Compiling SwiftMail IMAPServerEvent.swift
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/host/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1297/1304] Wrapping AST for SwiftMail for debugging
[1299/1311] Compiling SwiftSMTPCLI OSLogHandler.swift
[1300/1311] Emitting module SwiftSMTPCLI
[1301/1311] Compiling SwiftSMTPCLI Email+Demo.swift
[1302/1311] Compiling SwiftSMTPCLI main.swift
[1304/1312] Emitting module SwiftIMAPCLI
[1304/1312] Wrapping AST for SwiftSMTPCLI for debugging
[1305/1312] Write Objects.LinkFileList
[1306/1312] Linking SwiftSMTPCLI
[1308/1312] Compiling SwiftIMAPCLI OSLogHandler.swift
[1309/1312] Compiling SwiftIMAPCLI main.swift
/host/spi-builder-workspace/Demos/SwiftIMAPCLI/main.swift:13:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
11 | func runAsyncBlock(_ block: @escaping () async throws -> Void) {
12 | let semaphore = DispatchSemaphore(value: 0)
13 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
14 | do {
15 | try await block()
| `- note: closure captures 'block' which is accessible to code in the current task
16 | } catch {
17 | print("Error: \(error)")
[1310/1313] Wrapping AST for SwiftIMAPCLI for debugging
[1311/1313] Write Objects.LinkFileList
[1312/1313] Linking SwiftIMAPCLI
Build complete! (299.70s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-dotenv",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/thebarndog/swift-dotenv"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio"
},
{
"identity" : "swift-nio-imap",
"requirement" : {
"exact" : [
"0.3.0-pre"
]
},
"type" : "sourceControl",
"url" : "https://github.com/odrobnik/swift-nio-imap"
},
{
"identity" : "swift-nio-ssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-ssl"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
},
{
"identity" : "swift-testing",
"requirement" : {
"exact" : [
"0.12.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-testing"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "SwiftMail",
"name" : "SwiftMail",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "SwiftMail",
"targets" : [
"SwiftMail"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftIMAPCLI",
"targets" : [
"SwiftIMAPCLI"
],
"type" : {
"executable" : null
}
},
{
"name" : "SwiftSMTPCLI",
"targets" : [
"SwiftSMTPCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftSMTPTests",
"module_type" : "SwiftTarget",
"name" : "SwiftSMTPTests",
"path" : "Tests/SwiftSMTPTests",
"product_dependencies" : [
"Testing"
],
"sources" : [
"SMTPTests.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "test"
},
{
"c99name" : "SwiftSMTPCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftSMTPCLI",
"path" : "Demos/SwiftSMTPCLI",
"product_dependencies" : [
"SwiftDotenv"
],
"product_memberships" : [
"SwiftSMTPCLI"
],
"sources" : [
"Email+Demo.swift",
"OSLogHandler.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "executable"
},
{
"c99name" : "SwiftMailCoreTests",
"module_type" : "SwiftTarget",
"name" : "SwiftMailCoreTests",
"path" : "Tests/SwiftMailCoreTests",
"product_dependencies" : [
"Testing"
],
"sources" : [
"EmailAddressTests.swift",
"String+EmailTests.swift",
"String+HostnameTests.swift",
"String+MIMETests.swift",
"String+RedactingTests.swift",
"String+UtilitiesTests.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "test"
},
{
"c99name" : "SwiftMail",
"module_type" : "SwiftTarget",
"name" : "SwiftMail",
"path" : "Sources/SwiftMail",
"product_dependencies" : [
"NIO",
"NIOSSL",
"Logging",
"NIOIMAP",
"OrderedCollections"
],
"product_memberships" : [
"SwiftMail",
"SwiftIMAPCLI",
"SwiftSMTPCLI"
],
"sources" : [
"Core/Commands/BaseMailCommandHandler.swift",
"Core/Commands/MailCommand.swift",
"Core/Logging/MailLogger.swift",
"Core/Models/Attachment.swift",
"Core/Models/Email.swift",
"Core/Models/EmailAddress.swift",
"Core/Models/MessageID.swift",
"Extensions/Email+Content.swift",
"Extensions/Email+CustomDebugStringConvertible.swift",
"Extensions/Email+Message.swift",
"Extensions/Email+StringInitializers.swift",
"Extensions/EmailAddress+StringConversion.swift",
"Extensions/Message+Email.swift",
"Extensions/String+Charset.swift",
"Extensions/String+Email.swift",
"Extensions/String+FileSystem.swift",
"Extensions/String+Hostname.swift",
"Extensions/String+MIME.swift",
"Extensions/String+QuotedPrintable.swift",
"Extensions/String+Redacting.swift",
"Extensions/String+SafeContent.swift",
"IMAP/Capability+AppendLimit.swift",
"IMAP/Capability+Sort.swift",
"IMAP/Extensions/ByteBuffer+StringValue.swift",
"IMAP/Extensions/Data+Utilities.swift",
"IMAP/Extensions/Date+Formatting.swift",
"IMAP/Extensions/Int+Utilities.swift",
"IMAP/Extensions/String+SequenceSet.swift",
"IMAP/IMAP/Commands/AppendCommand.swift",
"IMAP/IMAP/Commands/AuthenticationCommands.swift",
"IMAP/IMAP/Commands/CloseCommand.swift",
"IMAP/IMAP/Commands/CreateMailboxCommand.swift",
"IMAP/IMAP/Commands/ExtendedSearchCommand.swift",
"IMAP/IMAP/Commands/FetchCommands.swift",
"IMAP/IMAP/Commands/IDCommand.swift",
"IMAP/IMAP/Commands/IMAPCommand.swift",
"IMAP/IMAP/Commands/IMAPStartTLSCommand.swift",
"IMAP/IMAP/Commands/IdleCommand.swift",
"IMAP/IMAP/Commands/ListCommand.swift",
"IMAP/IMAP/Commands/MoveCommand.swift",
"IMAP/IMAP/Commands/NamespaceCommand.swift",
"IMAP/IMAP/Commands/NoopCommand.swift",
"IMAP/IMAP/Commands/QuotaCommand.swift",
"IMAP/IMAP/Commands/SearchCommand.swift",
"IMAP/IMAP/Commands/SelectMailboxCommand.swift",
"IMAP/IMAP/Commands/ServerCommands.swift",
"IMAP/IMAP/Commands/StatusCommand.swift",
"IMAP/IMAP/Commands/UnselectCommand.swift",
"IMAP/IMAP/Handler/AppendHandler.swift",
"IMAP/IMAP/Handler/CloseHandler.swift",
"IMAP/IMAP/Handler/CommandHandler.swift",
"IMAP/IMAP/Handler/CreateMailboxHandler.swift",
"IMAP/IMAP/Handler/ExtendedSearchHandler.swift",
"IMAP/IMAP/Handler/FetchMessageInfoHandler.swift",
"IMAP/IMAP/Handler/FetchPartHandler.swift",
"IMAP/IMAP/Handler/FetchStructureHandler.swift",
"IMAP/IMAP/Handler/IDHandler.swift",
"IMAP/IMAP/Handler/IMAPGreetingHandler.swift",
"IMAP/IMAP/Handler/IMAPStartTLSHandler.swift",
"IMAP/IMAP/Handler/IdleHandler.swift",
"IMAP/IMAP/Handler/ListCommandHandler.swift",
"IMAP/IMAP/Handler/LoginHandler.swift",
"IMAP/IMAP/Handler/LogoutHandler.swift",
"IMAP/IMAP/Handler/MoveHandler.swift",
"IMAP/IMAP/Handler/NamespaceHandler.swift",
"IMAP/IMAP/Handler/NoopHandler.swift",
"IMAP/IMAP/Handler/PipelinedCommandDispatcher.swift",
"IMAP/IMAP/Handler/PipelinedFetchPartHandler.swift",
"IMAP/IMAP/Handler/PlainAuthenticationHandler.swift",
"IMAP/IMAP/Handler/QuotaHandler.swift",
"IMAP/IMAP/Handler/SearchHandler.swift",
"IMAP/IMAP/Handler/SelectHandler.swift",
"IMAP/IMAP/Handler/ServerHandlers.swift",
"IMAP/IMAP/Handler/StatusHandler.swift",
"IMAP/IMAP/Handler/UnselectHandler.swift",
"IMAP/IMAP/Handler/UntaggedResponseBuffer.swift",
"IMAP/IMAP/Handler/XOAUTH2AuthenticationHandler.swift",
"IMAP/IMAP/IMAPLogger.swift",
"IMAP/IMAPCommandQueue.swift",
"IMAP/IMAPConnection.swift",
"IMAP/IMAPError.swift",
"IMAP/IMAPIdleConfiguration.swift",
"IMAP/IMAPIdleSession.swift",
"IMAP/IMAPNamedConnection.swift",
"IMAP/IMAPProtocolErrors.swift",
"IMAP/IMAPServer.swift",
"IMAP/Models/AppendResult.swift",
"IMAP/Models/BodyStructure+CustomStringConvertible.swift",
"IMAP/Models/Data+Decoding.swift",
"IMAP/Models/ExtendedSearchResult.swift",
"IMAP/Models/Flag+Equatable.swift",
"IMAP/Models/Flag.swift",
"IMAP/Models/Header+CustomStringConvertible.swift",
"IMAP/Models/IMAPMessageAttribute.swift",
"IMAP/Models/IMAPServerEvent.swift",
"IMAP/Models/Identification.swift",
"IMAP/Models/MailFlagColor.swift",
"IMAP/Models/Mailbox.swift",
"IMAP/Models/MailboxStatus.swift",
"IMAP/Models/Message+CustomDebugStringConvertible.swift",
"IMAP/Models/Message+CustomStringConvertible.swift",
"IMAP/Models/Message.swift",
"IMAP/Models/MessageIdentifierSet.swift",
"IMAP/Models/MessageInfo.swift",
"IMAP/Models/MessagePart+BodyStructure.swift",
"IMAP/Models/MessagePart+CustomStringConvertible.swift",
"IMAP/Models/MessagePart.swift",
"IMAP/Models/Namespace.swift",
"IMAP/Models/Quota.swift",
"IMAP/Models/SearchCriteria.swift",
"IMAP/Models/Section.swift",
"IMAP/Models/SortCriterion.swift",
"IMAP/Models/StoreData.swift",
"IMAP/Models/UIDValidity.swift",
"IMAP/Protocols/IMAPCommandHandler.swift",
"IMAP/Protocols/IMAPMailCommand.swift",
"IMAP/UndefinedFolderError.swift",
"MIME/EMLParser.swift",
"MIME/EMLSerializer.swift",
"SMTP/Commands/AuthCommand.swift",
"SMTP/Commands/DataCommand.swift",
"SMTP/Commands/EHLOCommand.swift",
"SMTP/Commands/LoginAuthCommand.swift",
"SMTP/Commands/MailFromCommand.swift",
"SMTP/Commands/PlainAuthCommand.swift",
"SMTP/Commands/QuitCommand.swift",
"SMTP/Commands/RcptToCommand.swift",
"SMTP/Commands/SendContentCommand.swift",
"SMTP/Commands/StartTLSCommand.swift",
"SMTP/Commands/XOAuth2AuthCommand.swift",
"SMTP/Core/SMTPResponse.swift",
"SMTP/Core/SMTPResponseCode.swift",
"SMTP/Handlers/AuthHandler.swift",
"SMTP/Handlers/AuthHandlerStateMachine.swift",
"SMTP/Handlers/BaseSMTPHandler.swift",
"SMTP/Handlers/DataHandler.swift",
"SMTP/Handlers/EHLOHandler.swift",
"SMTP/Handlers/LoginAuthHandler.swift",
"SMTP/Handlers/MailFromHandler.swift",
"SMTP/Handlers/PlainAuthHandler.swift",
"SMTP/Handlers/QuitHandler.swift",
"SMTP/Handlers/RcptToHandler.swift",
"SMTP/Handlers/SMTPCommandHandler.swift",
"SMTP/Handlers/SMTPGreetingHandler.swift",
"SMTP/Handlers/SMTPResponseHandler.swift",
"SMTP/Handlers/SendContentHandler.swift",
"SMTP/Handlers/StartTLSHandler.swift",
"SMTP/Protocols/SMTPCommand.swift",
"SMTP/Protocols/SMTPMailCommand.swift",
"SMTP/SMTPError.swift",
"SMTP/SMTPLogger.swift",
"SMTP/SMTPServer.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftIMAPTests",
"module_type" : "SwiftTarget",
"name" : "SwiftIMAPTests",
"path" : "Tests/SwiftIMAPTests",
"product_dependencies" : [
"Testing",
"NIO",
"NIOEmbedded",
"NIOIMAP",
"Logging"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/SwiftIMAPTests/Resources",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AppendLimitTests.swift",
"ByteBufferStringValueTests.swift",
"DataUtilitiesTests.swift",
"EMLTests.swift",
"EmailMessageConversionTests.swift",
"ExtendedSearchHandlerTests.swift",
"FetchMessageInfoHandlerTests.swift",
"FetchRawMessageTests.swift",
"ICSCalendarDetectionTests.swift",
"IMAPClientHandler+Sendable.swift",
"IMAPCommandQueueTests.swift",
"IMAPConnectionTLSModeTests.swift",
"IMAPIdleGroupLifecycleTests.swift",
"IMAPNamedConnectionTests.swift",
"IMAPPlaintextIntegrationTests.swift",
"IMAPTestServer.swift",
"IdleHandlerTests.swift",
"IntUtilitiesTests.swift",
"MessageBodyTests.swift",
"MessageChunkingTests.swift",
"MessageIDTests.swift",
"MessagePartBodyStructureTests.swift",
"NamespaceResolutionTests.swift",
"PipelinedFetchTests.swift",
"PlainAuthenticationTests.swift",
"ProblematicMessageTests.swift",
"QuotedPrintableTests.swift",
"SearchCommandTests.swift",
"SendDraftTests.swift",
"UntaggedResponseBufferTests.swift",
"WithinSearchTests.swift",
"XOAUTH2AuthenticationHandlerTests.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "test"
},
{
"c99name" : "SwiftIMAPCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftIMAPCLI",
"path" : "Demos/SwiftIMAPCLI",
"product_dependencies" : [
"SwiftDotenv",
"ArgumentParser"
],
"product_memberships" : [
"SwiftIMAPCLI"
],
"sources" : [
"OSLogHandler.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "executable"
}
],
"tools_version" : "5.9"
}
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Done.