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 Netswift, reference 1.1.1 (2b4562), with Swift 6.0 for Linux on 30 Nov 2024 00:08:01 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MrSkwiggs/Netswift.git
Reference: 1.1.1
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/MrSkwiggs/Netswift
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at 2b45629 🔀 Merge pull request #48 from MrSkwiggs/bleeding_edge
Cloned https://github.com/MrSkwiggs/Netswift.git
Revision (git rev-parse @):
2b45629ae5f4859e62207b1d4064e08bd870e689
SUCCESS checkout https://github.com/MrSkwiggs/Netswift.git at 1.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/MrSkwiggs/Netswift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/23] Emitting module Netswift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 12 |
 13 |     /// The category for the error
 14 |     public let category: Category
    |                `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 15 |     /// Additonal information about the error
 16 |     public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
 11 | public extension NetswiftError {
 12 |     /// All the errors that can be raised while performing HTTP requests
 13 |     enum Category: CustomDebugStringConvertible {
    |          `- note: consider making enum 'Category' conform to the 'Sendable' protocol
 14 |
 15 |         /// The request couldn't be serialised before being sent out
[4/25] Compiling Netswift NetswiftAuthorizationType.swift
[5/25] Compiling Netswift NetswiftEncoder.swift
[6/25] Compiling Netswift NetswiftError+Category.swift
[7/25] Compiling Netswift GenericScheme.swift
[8/25] Compiling Netswift HTTPPerformer.swift
[9/25] Compiling Netswift MimeType.swift
[10/25] Compiling Netswift RequestHeader.swift
[11/25] Compiling Netswift URLRequestExtension.swift
[12/25] Compiling Netswift NetswiftHandler.swift
[13/25] Compiling Netswift NetswiftHeaders.swift
[14/25] Compiling Netswift NetswiftNetworkPerformer.swift
[15/25] Compiling Netswift NetswiftError.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 12 |
 13 |     /// The category for the error
 14 |     public let category: Category
    |                `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 15 |     /// Additonal information about the error
 16 |     public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
 11 | public extension NetswiftError {
 12 |     /// All the errors that can be raised while performing HTTP requests
 13 |     enum Category: CustomDebugStringConvertible {
    |          `- note: consider making enum 'Category' conform to the 'Sendable' protocol
 14 |
 15 |         /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 |     var fullDescription: String {
133 |         switch self {
134 |         case .typeMismatch(let any, let context):
    |                                `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 |             return context.debugDescription
136 |         case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 |         case .typeMismatch(let any, let context):
135 |             return context.debugDescription
136 |         case .valueNotFound(let any, let context):
    |                                 `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 |             return context.debugDescription
138 |         case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 |         case .valueNotFound(let any, let context):
137 |             return context.debugDescription
138 |         case .keyNotFound(let codingKey, let context):
    |                               `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 |             return context.debugDescription
140 |         case .dataCorrupted(let context):
[16/25] Compiling Netswift NetswiftHTTPMethod.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 12 |
 13 |     /// The category for the error
 14 |     public let category: Category
    |                `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 15 |     /// Additonal information about the error
 16 |     public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
 11 | public extension NetswiftError {
 12 |     /// All the errors that can be raised while performing HTTP requests
 13 |     enum Category: CustomDebugStringConvertible {
    |          `- note: consider making enum 'Category' conform to the 'Sendable' protocol
 14 |
 15 |         /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 |     var fullDescription: String {
133 |         switch self {
134 |         case .typeMismatch(let any, let context):
    |                                `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 |             return context.debugDescription
136 |         case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 |         case .typeMismatch(let any, let context):
135 |             return context.debugDescription
136 |         case .valueNotFound(let any, let context):
    |                                 `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 |             return context.debugDescription
138 |         case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 |         case .valueNotFound(let any, let context):
137 |             return context.debugDescription
138 |         case .keyNotFound(let codingKey, let context):
    |                               `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 |             return context.debugDescription
140 |         case .dataCorrupted(let context):
[17/25] Compiling Netswift NetswiftHTTPResponse.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 12 |
 13 |     /// The category for the error
 14 |     public let category: Category
    |                `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
 15 |     /// Additonal information about the error
 16 |     public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
 11 | public extension NetswiftError {
 12 |     /// All the errors that can be raised while performing HTTP requests
 13 |     enum Category: CustomDebugStringConvertible {
    |          `- note: consider making enum 'Category' conform to the 'Sendable' protocol
 14 |
 15 |         /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 |     var fullDescription: String {
133 |         switch self {
134 |         case .typeMismatch(let any, let context):
    |                                `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 |             return context.debugDescription
136 |         case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 |         case .typeMismatch(let any, let context):
135 |             return context.debugDescription
136 |         case .valueNotFound(let any, let context):
    |                                 `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 |             return context.debugDescription
138 |         case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 |         case .valueNotFound(let any, let context):
137 |             return context.debugDescription
138 |         case .keyNotFound(let codingKey, let context):
    |                               `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 |             return context.debugDescription
140 |         case .dataCorrupted(let context):
[18/25] Compiling Netswift NetswiftRoute.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:30:13: warning: capture of 'handler' with non-sendable type 'URLSession.RequestHandler' (aka '(NetswiftHTTPResponse) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |     public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
29 |         let task = dataTask(with: urlRequest) { data, response, error in
30 |             handler(.init(data: data, response: response, error: error))
   |             |- warning: capture of 'handler' with non-sendable type 'URLSession.RequestHandler' (aka '(NetswiftHTTPResponse) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 |         }
32 |         task.resume()
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:43:17: warning: result of call to 'dataTask(with:completionHandler:)' is unused
41 |         do {
42 |             let response: (Data?, URLResponse?) = try await withCheckedThrowingContinuation { continuation in
43 |                 dataTask(with: urlRequest) { data, response, error in
   |                 `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
44 |                     if let error = error {
45 |                         continuation.resume(throwing: error)
[19/25] Compiling Netswift NetswiftSession.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:30:13: warning: capture of 'handler' with non-sendable type 'URLSession.RequestHandler' (aka '(NetswiftHTTPResponse) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |     public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
29 |         let task = dataTask(with: urlRequest) { data, response, error in
30 |             handler(.init(data: data, response: response, error: error))
   |             |- warning: capture of 'handler' with non-sendable type 'URLSession.RequestHandler' (aka '(NetswiftHTTPResponse) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 |         }
32 |         task.resume()
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:43:17: warning: result of call to 'dataTask(with:completionHandler:)' is unused
41 |         do {
42 |             let response: (Data?, URLResponse?) = try await withCheckedThrowingContinuation { continuation in
43 |                 dataTask(with: urlRequest) { data, response, error in
   |                 `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
44 |                     if let error = error {
45 |                         continuation.resume(throwing: error)
[20/25] Compiling Netswift NetswiftTask.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:30:13: warning: capture of 'handler' with non-sendable type 'URLSession.RequestHandler' (aka '(NetswiftHTTPResponse) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |     public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
29 |         let task = dataTask(with: urlRequest) { data, response, error in
30 |             handler(.init(data: data, response: response, error: error))
   |             |- warning: capture of 'handler' with non-sendable type 'URLSession.RequestHandler' (aka '(NetswiftHTTPResponse) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
31 |         }
32 |         task.resume()
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:43:17: warning: result of call to 'dataTask(with:completionHandler:)' is unused
41 |         do {
42 |             let response: (Data?, URLResponse?) = try await withCheckedThrowingContinuation { continuation in
43 |                 dataTask(with: urlRequest) { data, response, error in
   |                 `- warning: result of call to 'dataTask(with:completionHandler:)' is unused
44 |                     if let error = error {
45 |                         continuation.resume(throwing: error)
[21/25] Compiling Netswift NetswiftHTTPPerformer.swift
[22/25] Compiling Netswift NetswiftPerformer.swift
[23/25] Compiling Netswift NetswiftRequest.swift
[24/25] Compiling Netswift NetswiftRequestPerformable.swift
[25/25] Compiling Netswift NetswiftResult.swift
Build complete! (10.87s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Netswift",
  "name" : "Netswift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Netswift",
      "targets" : [
        "Netswift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NetswiftTests",
      "module_type" : "SwiftTarget",
      "name" : "NetswiftTests",
      "path" : "Tests/NetswiftTests",
      "sources" : [
        "NetswiftTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Netswift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Netswift",
      "module_type" : "SwiftTarget",
      "name" : "Netswift",
      "path" : "Sources/Netswift",
      "product_memberships" : [
        "Netswift"
      ],
      "sources" : [
        "Core/GenericScheme.swift",
        "Core/HTTPPerformer.swift",
        "Core/MimeType.swift",
        "Core/NetswiftAuthorizationType.swift",
        "Core/NetswiftEncoder.swift",
        "Core/NetswiftError/NetswiftError+Category.swift",
        "Core/NetswiftError/NetswiftError.swift",
        "Core/NetswiftHTTPMethod.swift",
        "Core/NetswiftHTTPResponse.swift",
        "Core/NetswiftHandler.swift",
        "Core/NetswiftHeaders.swift",
        "Core/NetswiftNetworkPerformer.swift",
        "Core/NetswiftRequest.swift",
        "Core/NetswiftRequestPerformable.swift",
        "Core/NetswiftResult.swift",
        "Core/NetswiftRoute.swift",
        "Core/NetswiftSession.swift",
        "Core/NetswiftTask.swift",
        "Core/RequestHeader.swift",
        "Core/URLRequestExtension.swift",
        "NetswiftHTTPPerformer.swift",
        "NetswiftPerformer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.