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 macOS (SPM) on 16 Mar 2025 16:56:39 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

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 /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/Recouse/EventSource.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
[3/11] Compiling EventSource Headers.swift
[4/11] Compiling EventSource Mutex.swift
[5/11] Compiling EventSource Extensions.swift
[6/11] Compiling EventSource ServerEvent.swift
[7/11] Compiling EventSource EventSourceError.swift
[8/11] Compiling EventSource SessionDelegate.swift
[9/11] Compiling EventSource EventParser.swift
[10/11] Emitting module EventSource
[11/11] Compiling EventSource EventSource.swift
/Users/admin/builder/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 {
                                       ^
/Users/admin/builder/spi-builder-workspace/Sources/EventSource/SessionDelegate.swift:14:13: note: class 'SessionDelegate' does not conform to the 'Sendable' protocol
final class SessionDelegate: NSObject, URLSessionDataDelegate {
            ^
/Users/admin/builder/spi-builder-workspace/Sources/EventSource/EventSource.swift:210:25: warning: no 'async' operations occur within 'await' expression
                        await self?.close(stream: continuation, urlSession: urlSession)
                        ^
Build complete! (5.16s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventSource",
  "name" : "EventSource",
  "path" : "/Users/admin/builder/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"
}
Done.