The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of EventSource, reference main (9cf013), with Swift 5.10 for Linux on 16 Mar 2025 16:55:54 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/EventSource.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Recouse/EventSource
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9cf013d Ignore readme and other .md files in CI workflow
Cloned https://github.com/Recouse/EventSource.git
Revision (git rev-parse @):
9cf013dc7c0de1da2abe28646e575cd6e6cfccaf
SUCCESS checkout https://github.com/Recouse/EventSource.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/Recouse/EventSource.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling EventSource Headers.swift
[4/11] Compiling EventSource Extensions.swift
[5/11] Compiling EventSource EventSourceError.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:65:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, deprecated: 1.0, obsoleted: 1.1, message: "This method is not recommended on visionOS 1.0+")
     ^
[6/11] Emitting module EventSource
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:65:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, deprecated: 1.0, obsoleted: 1.1, message: "This method is not recommended on visionOS 1.0+")
     ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:104:20: warning: stored property 'urlRequest' of 'Sendable'-conforming class 'DataTask' has non-sendable type 'URLRequest'
        public let urlRequest: URLRequest
                   ^
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
              ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:11:5: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
    import FoundationNetworking
    ^
    @preconcurrency
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:17:14: warning: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse'
        case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
             ^
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
open class URLResponse : NSObject, NSSecureCoding, NSCopying {
           ^
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:11:5: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
    import FoundationNetworking
    ^
    @preconcurrency
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:33:10: warning: sendability of function types in instance method 'urlSession(_:dataTask:didReceive:completionHandler:)' does not match requirement in protocol 'URLSessionDataDelegate'
    func urlSession(
         ^
FoundationNetworking.URLSessionDataDelegate:2:10: note: expected sendability to match requirement here
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
         ^
[7/11] Compiling EventSource EventParser.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:50:69: warning: unrecognized platform name 'visionOS'
        if #available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, visionOS 1.0, *) {
                                                                    ^
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:65:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, deprecated: 1.0, obsoleted: 1.1, message: "This method is not recommended on visionOS 1.0+")
     ^
[8/11] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:104:20: warning: stored property 'urlRequest' of 'Sendable'-conforming class 'DataTask' has non-sendable type 'URLRequest'
        public let urlRequest: URLRequest
                   ^
FoundationNetworking.URLRequest:1:15: note: struct 'URLRequest' does not conform to the 'Sendable' protocol
public struct URLRequest : ReferenceConvertible, Equatable, Hashable {
              ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:11:5: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
    import FoundationNetworking
    ^
    @preconcurrency
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:182:40: warning: capture of 'sessionDelegate' with non-sendable type 'SessionDelegate' in a `@Sendable` closure
                    for await event in sessionDelegate.eventStream {
                                       ^
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:14:13: note: class 'SessionDelegate' does not conform to the 'Sendable' protocol
final class SessionDelegate: NSObject, URLSessionDataDelegate {
            ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:187:89: warning: capture of 'urlSession' with non-sendable type 'URLSession' in a `@Sendable` closure
                            handleSessionError(error, stream: continuation, urlSession: urlSession)
                                                                                        ^
FoundationNetworking.URLSession:1:12: note: class 'URLSession' does not conform to the 'Sendable' protocol
open class URLSession : NSObject {
           ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:210:77: warning: capture of 'urlSession' with non-sendable type 'URLSession' in a `@Sendable` closure
                        await self?.close(stream: continuation, urlSession: urlSession)
                                                                            ^
FoundationNetworking.URLSession:1:12: note: class 'URLSession' does not conform to the 'Sendable' protocol
open class URLSession : NSObject {
           ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:210:77: warning: capture of 'urlSession' with non-sendable type 'URLSession' in a `@Sendable` closure
                        await self?.close(stream: continuation, urlSession: urlSession)
                                                                            ^
FoundationNetworking.URLSession:1:12: note: class 'URLSession' does not conform to the 'Sendable' protocol
open class URLSession : NSObject {
           ^
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:210:25: warning: no 'async' operations occur within 'await' expression
                        await self?.close(stream: continuation, urlSession: urlSession)
                        ^
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:65:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, deprecated: 1.0, obsoleted: 1.1, message: "This method is not recommended on visionOS 1.0+")
     ^
[9/11] Compiling EventSource SessionDelegate.swift
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:17:14: warning: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse'
        case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
             ^
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
open class URLResponse : NSObject, NSSecureCoding, NSCopying {
           ^
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:11:5: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
    import FoundationNetworking
    ^
    @preconcurrency
/host/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:33:10: warning: sendability of function types in instance method 'urlSession(_:dataTask:didReceive:completionHandler:)' does not match requirement in protocol 'URLSessionDataDelegate'
    func urlSession(
         ^
FoundationNetworking.URLSessionDataDelegate:2:10: note: expected sendability to match requirement here
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
         ^
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:65:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, deprecated: 1.0, obsoleted: 1.1, message: "This method is not recommended on visionOS 1.0+")
     ^
[10/11] Compiling EventSource ServerEvent.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:65:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, deprecated: 1.0, obsoleted: 1.1, message: "This method is not recommended on visionOS 1.0+")
     ^
[11/11] Compiling EventSource Mutex.swift
Build complete! (8.99s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventSource",
  "name" : "EventSource",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "EventSource",
      "targets" : [
        "EventSource"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EventSourceTests",
      "module_type" : "SwiftTarget",
      "name" : "EventSourceTests",
      "path" : "Tests/EventSourceTests",
      "sources" : [
        "EventParserTests.swift"
      ],
      "target_dependencies" : [
        "EventSource"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EventSource",
      "module_type" : "SwiftTarget",
      "name" : "EventSource",
      "path" : "Sources/EventSource",
      "product_memberships" : [
        "EventSource"
      ],
      "sources" : [
        "EventParser.swift",
        "EventSource.swift",
        "EventSourceError.swift",
        "Extensions.swift",
        "Headers.swift",
        "Mutex.swift",
        "ServerEvent.swift",
        "SessionDelegate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Done.