The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of EventSource, reference 0.1.5 (7b2f4f), with Swift 5.10 for Linux on 7 Jul 2025 10:12:14 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/EventSource.git
Reference: 0.1.5
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
 * tag               0.1.5      -> FETCH_HEAD
HEAD is now at 7b2f4f5 Update cleanMessageData method
Cloned https://github.com/Recouse/EventSource.git
Revision (git rev-parse @):
7b2f4f585d3927876bd76eaede9fdff779eff102
SUCCESS checkout https://github.com/Recouse/EventSource.git at 0.1.5
========================================
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-4609320-1":/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:c30bb8beee7254e839cc0142f4ae78578b8fc8e8159324cc3637097cc1b395b6
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/11] Compiling EventSource Extensions.swift
[4/12] 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:100: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+")
     ^
[5/12] 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:100: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/12] Emitting module EventSource
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:100: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/12] Compiling EventSource Data+Trim.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:53:95: warning: unrecognized platform name 'visionOS'
        let rawMessages: [Data] = 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:100: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/12] Compiling EventSource EventParser.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:53:95: warning: unrecognized platform name 'visionOS'
        let rawMessages: [Data] = 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:100: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/12] Compiling EventSource EventSourceError.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:100: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/12] Compiling EventSource Mutex.swift
[11/12] Compiling EventSource Headers.swift
[12/12] Compiling EventSource ServerEvent.swift
/host/spi-builder-workspace/Sources/EventSource/EventParser.swift:100: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+")
     ^
Build complete! (5.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" : [
        "Data+Trim.swift",
        "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:c30bb8beee7254e839cc0142f4ae78578b8fc8e8159324cc3637097cc1b395b6
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Done.