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 LDSwiftEventSource, reference 3.3.0 (570517), with Swift 6.1 for Linux on 28 Apr 2025 21:01:34 UTC.

Swift 6 data race errors: 3

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LaunchDarkly/swift-eventsource.git
Reference: 3.3.0
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/LaunchDarkly/swift-eventsource
 * tag               3.3.0      -> FETCH_HEAD
HEAD is now at 5705170 chore(main): release 3.3.0 (#79)
Cloned https://github.com/LaunchDarkly/swift-eventsource.git
Revision (git rev-parse @):
57051701c58a93603ffa2051f8e9cf0c8cff7814
SUCCESS checkout https://github.com/LaunchDarkly/swift-eventsource.git at 3.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/LaunchDarkly/swift-eventsource.git
https://github.com/LaunchDarkly/swift-eventsource.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LDSwiftEventSource",
  "name" : "LDSwiftEventSource",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "LDSwiftEventSource",
      "targets" : [
        "LDSwiftEventSource"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "LDSwiftEventSourceTests",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSourceTests",
      "path" : "Tests",
      "sources" : [
        "EventParserTests.swift",
        "LDSwiftEventSourceTests.swift",
        "MockHandler.swift",
        "TestUtil.swift",
        "UTF8LineParserTests.swift"
      ],
      "target_dependencies" : [
        "LDSwiftEventSource"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LDSwiftEventSource",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSource",
      "path" : "Source",
      "product_memberships" : [
        "LDSwiftEventSource"
      ],
      "sources" : [
        "EventParser.swift",
        "LDSwiftEventSource.swift",
        "Logs.swift",
        "Types.swift",
        "UTF8LineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/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>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling LDSwiftEventSource UTF8LineParser.swift
[4/8] Compiling LDSwiftEventSource Types.swift
/host/spi-builder-workspace/Source/Types.swift:99:14: warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 97 |
 98 | /// Error class that indicates the remote server returned an unsuccessful HTTP response code.
 99 | public class UnsuccessfulResponseError: Error {
    |              `- warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
100 |     /// The HTTP response code received.
101 |     public let responseCode: Int
[5/8] Compiling LDSwiftEventSource Logs.swift
[6/8] Emitting module LDSwiftEventSource
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:7: warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:168:16: warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
168 |     public var logger: InternalLogging
    |                `- warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
169 |
170 |     private let config: EventSource.Config
/host/spi-builder-workspace/Source/Types.swift:99:14: warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 97 |
 98 | /// Error class that indicates the remote server returned an unsuccessful HTTP response code.
 99 | public class UnsuccessfulResponseError: Error {
    |              `- warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
100 |     /// The HTTP response code received.
101 |     public let responseCode: Int
[7/8] Compiling LDSwiftEventSource LDSwiftEventSource.swift
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:7: warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:168:16: warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
168 |     public var logger: InternalLogging
    |                `- warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
169 |
170 |     private let config: EventSource.Config
[8/8] Compiling LDSwiftEventSource EventParser.swift
/host/spi-builder-workspace/Source/EventParser.swift:68:22: error: no 'contains' candidates produce the expected type '(Character) throws -> Bool' for parameter #0
66 |             eventType = String(value)
67 |         case Constants.retryLabel:
68 |             if value.allSatisfy(("0"..."9").contains), let reconnectionTime = Int64(value) {
   |                      `- error: no 'contains' candidates produce the expected type '(Character) throws -> Bool' for parameter #0
69 |                 currentRetry = Double(reconnectionTime) * 0.001
70 |             }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling LDSwiftEventSource Logs.swift
[3/7] Compiling LDSwiftEventSource Types.swift
[4/7] Compiling LDSwiftEventSource UTF8LineParser.swift
[5/7] Emitting module LDSwiftEventSource
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:7: warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:168:16: warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
168 |     public var logger: InternalLogging
    |                `- warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
169 |
170 |     private let config: EventSource.Config
[6/7] Compiling LDSwiftEventSource EventParser.swift
[7/7] Compiling LDSwiftEventSource LDSwiftEventSource.swift
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:7: warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSourceDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:168:16: warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
168 |     public var logger: InternalLogging
    |                `- warning: stored property 'logger' of 'Sendable'-conforming class 'EventSourceDelegate' is mutable; this is an error in the Swift 6 language mode
169 |
170 |     private let config: EventSource.Config
Build complete! (1.42s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LDSwiftEventSource",
  "name" : "LDSwiftEventSource",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "LDSwiftEventSource",
      "targets" : [
        "LDSwiftEventSource"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "LDSwiftEventSourceTests",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSourceTests",
      "path" : "Tests",
      "sources" : [
        "EventParserTests.swift",
        "LDSwiftEventSourceTests.swift",
        "MockHandler.swift",
        "TestUtil.swift",
        "UTF8LineParserTests.swift"
      ],
      "target_dependencies" : [
        "LDSwiftEventSource"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LDSwiftEventSource",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSource",
      "path" : "Source",
      "product_memberships" : [
        "LDSwiftEventSource"
      ],
      "sources" : [
        "EventParser.swift",
        "LDSwiftEventSource.swift",
        "Logs.swift",
        "Types.swift",
        "UTF8LineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.